From 2de1109da39a46200e741b5a6643ce7fb1418041 Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Mon, 23 May 2016 13:21:02 -0400 Subject: Enable Performance/StartWith cop and fix offenses --- app/helpers/tab_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers/tab_helper.rb') diff --git a/app/helpers/tab_helper.rb b/app/helpers/tab_helper.rb index 96a83671009..b4b4d804203 100644 --- a/app/helpers/tab_helper.rb +++ b/app/helpers/tab_helper.rb @@ -112,7 +112,7 @@ module TabHelper end def profile_tab_class - if controller.controller_path =~ /\Aprofiles/ + if controller.controller_path.start_with?('profiles') return 'active' end -- cgit v1.2.1