OSDN Git Service

Fixed ref switcher
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Thu, 27 Sep 2012 06:53:42 +0000 (09:53 +0300)
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>
Thu, 27 Sep 2012 06:53:42 +0000 (09:53 +0300)
app/helpers/application_helper.rb

index 185e7d8..911b46c 100644 (file)
@@ -60,8 +60,8 @@ module ApplicationHelper
 
   def grouped_options_refs(destination = :tree)
     options = [
-      ["Branch", @project.repo.heads.map(&:name) ],
-      [ "Tag", @project.tags ]
+      ["Branch", @project.branch_names ],
+      [ "Tag", @project.tag_names ]
     ]
 
     # If reference is commit id -