Use start_with? instead of regex
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
2f1828a981
commit
3d4ef74d36
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue