Use start_with? instead of regex

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-05-24 00:23:23 +02:00
parent 2f1828a981
commit 3d4ef74d36
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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