Commit 3d4ef74d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Use start_with? instead of regex

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2f1828a9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment