diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 01:23:23 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-05-24 01:23:23 +0300 |
commit | 3d4ef74d360cf977ff514c937b0e6f6498caa3f6 (patch) | |
tree | f0aa41983997e7ad784614ca49992f15bd52ada5 | |
parent | 2f1828a981e5cf193f95cfacbfd5d50fd255e589 (diff) |
Use start_with? instead of regex
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-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 |