diff options
author | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-08-20 07:05:23 +0400 |
---|---|---|
committer | Hiroyuki Sato <sathiroyuki@gmail.com> | 2013-08-20 07:05:23 +0400 |
commit | fd0afcc996d687232c1181263b17793b2827d44e (patch) | |
tree | 06839797007893a37a1ecc16a311b8a8fa998999 /app/helpers/graph_helper.rb | |
parent | 65cba5c6b91483f7f629c9bb2dcd98e2da92405c (diff) |
Remove the dependancy of grit from class Network::Graph
Diffstat (limited to 'app/helpers/graph_helper.rb')
-rw-r--r-- | app/helpers/graph_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/graph_helper.rb b/app/helpers/graph_helper.rb index 71a07d6cad1..7cb1b6f8d1a 100644 --- a/app/helpers/graph_helper.rb +++ b/app/helpers/graph_helper.rb @@ -1,7 +1,7 @@ module GraphHelper - def get_refs(commit) + def get_refs(repo, commit) refs = "" - refs += commit.refs.collect{|r|r.name}.join(" ") if commit.refs + refs += commit.ref_names(repo).join(" ") # append note count refs += "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0 |