summaryrefslogtreecommitdiff
path: root/app/helpers/tab_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-16 22:25:59 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-16 22:25:59 +0300
commitd207a31fc97edf4e19a50c4a650d6a34b4f5a2cf (patch)
treefc24c82bf320d067805643252b79e32d2c685801 /app/helpers/tab_helper.rb
parent7a167cf1f74b4e74c4ba9de715585a1251165c5b (diff)
downloadgitlab-ce-d207a31fc97edf4e19a50c4a650d6a34b4f5a2cf.tar.gz
Fix tests and tab highlight
Diffstat (limited to 'app/helpers/tab_helper.rb')
-rw-r--r--app/helpers/tab_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb
index 19aba0f5f6d..ce675872264 100644
--- a/app/helpers/tab_helper.rb
+++ b/app/helpers/tab_helper.rb
@@ -81,8 +81,8 @@ module TabHelper
end
def branches_tab_class
- if current_page?(branches_project_repository_path(@project)) ||
- current_controller?(:protected_branches) ||
+ if current_controller?(:protected_branches) ||
+ current_controller?(:branches) ||
current_page?(project_repository_path(@project))
'active'
end