Updated branch-graph, abstracted some code in seperate functions
Removed unused Raphael.fn.popup
This commit is contained in:
parent
e1282d507f
commit
4b2ecbc420
4 changed files with 150 additions and 161 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue