diff options
author | Koen Punt <koen@koenpunt.nl> | 2012-12-07 22:05:17 +0100 |
---|---|---|
committer | Koen Punt <koen@koenpunt.nl> | 2012-12-07 22:05:17 +0100 |
commit | 4b2ecbc420ca10ad78e0e6f921d6740c84f2574a (patch) | |
tree | 691d58038568215b8d5b8688d638147fe50caa4a /lib/gitlab | |
parent | e1282d507f1a0321c4f25815470b0fa05265e6dd (diff) | |
download | gitlab-ce-4b2ecbc420ca10ad78e0e6f921d6740c84f2574a.tar.gz |
Updated branch-graph, abstracted some code in seperate functions
Removed unused Raphael.fn.popup
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/graph/json_builder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/graph/json_builder.rb b/lib/gitlab/graph/json_builder.rb index e6017644966..a5914363393 100644 --- a/lib/gitlab/graph/json_builder.rb +++ b/lib/gitlab/graph/json_builder.rb @@ -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 |