BigW Consortium Gitlab

Use start_with? instead of regex

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