Use start_with? instead of regex

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册