diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 00:23:23 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 00:23:23 +0200 |
commit | 3d4ef74d360cf977ff514c937b0e6f6498caa3f6 (patch) | |
tree | f0aa41983997e7ad784614ca49992f15bd52ada5 /app | |
parent | 2f1828a981e5cf193f95cfacbfd5d50fd255e589 (diff) | |
download | gitlab-ce-3d4ef74d360cf977ff514c937b0e6f6498caa3f6.tar.gz |
Use start_with? instead of regex
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/tab_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index 0fe94c395ec..563ddd2a511 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -95,7 +95,7 @@ module TabHelper end def project_tab_class - if controller.controller_path =~ /\Aprojects/ + if controller.controller_path.start_with?('projects') return 'active' end |