diff options
author | Luke Bennett <lbennett@gitlab.com> | 2018-09-13 16:01:33 +0100 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-09-24 11:43:20 +0100 |
commit | 8c4399e530e8560321ab805bce426c99fb104d84 (patch) | |
tree | a8172a20b7b0fcab654343619b7f0cb365f7acfb /app/helpers/dashboard_helper.rb | |
parent | 76bc9eefbbbfd697e6ae1c6bef35524e2eca5783 (diff) | |
download | gitlab-ce-8c4399e530e8560321ab805bce426c99fb104d84.tar.gz |
Lint
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index 7a0e2135b94..267ccbd8c5d 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -22,17 +22,17 @@ module DashboardHelper def controller_action_to_child_dashboards(controller = controller_name, action = action_name) case "#{controller}##{action}" when 'projects#index', 'root#index', 'projects#starred', 'projects#trending' - ['projects', 'stars'] + %w(projects, 'stars) when 'dashboard#activity' - ['starred_project_activity', 'project_activity'] + %w(starred_project_activity, 'project_activity) when 'groups#index' - ['groups'] + %w(groups) when 'todos#index' - ['todos'] + %w(todos) when 'dashboard#issues' - ['issues'] + %w(issues) when 'dashboard#merge_requests' - ['merge_requests'] + %w(merge_requests) else [] end |