summaryrefslogtreecommitdiff
path: root/lib/gitlab
diff options
context:
space:
mode:
authorKoen Punt <koen@koenpunt.nl>2012-12-07 22:05:17 +0100
committerKoen Punt <koen@koenpunt.nl>2012-12-07 22:05:17 +0100
commit4b2ecbc420ca10ad78e0e6f921d6740c84f2574a (patch)
tree691d58038568215b8d5b8688d638147fe50caa4a /lib/gitlab
parente1282d507f1a0321c4f25815470b0fa05265e6dd (diff)
downloadgitlab-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.rb4
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