Updated branch-graph, abstracted some code in seperate functions

Removed unused Raphael.fn.popup
This commit is contained in:
Koen Punt 2012-12-07 22:05:17 +01:00
parent e1282d507f
commit 4b2ecbc420
4 changed files with 150 additions and 161 deletions

View file

@ -18,11 +18,11 @@ module Gitlab
@days = index_commits
end
def to_json
def to_json(*args)
{
days: @days.compact.map { |d| [d.day, d.strftime("%b")] },
commits: @commits.map(&:to_graph_hash)
}.to_json
}.to_json(*args)
end
protected