diff options
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 |