summaryrefslogtreecommitdiff
path: root/app/helpers/dashboard_helper.rb
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2018-09-14 03:09:32 +0100
committerLuke Bennett <lbennett@gitlab.com>2018-09-24 11:47:06 +0100
commitc58a4ea81e6969594050bc7c0d6b548fd7112e16 (patch)
tree009e66ad84e221cfe7c142aa13aa14c15b95177d /app/helpers/dashboard_helper.rb
parent2ab3e57cc98cc48c921b2c7c529acc1c75063b3a (diff)
downloadgitlab-ce-c58a4ea81e6969594050bc7c0d6b548fd7112e16.tar.gz
Lint
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r--app/helpers/dashboard_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb
index 267ccbd8c5d..31551fba862 100644
--- a/app/helpers/dashboard_helper.rb
+++ b/app/helpers/dashboard_helper.rb
@@ -22,9 +22,9 @@ 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'
- %w(projects, 'stars)
+ %w(projects stars)
when 'dashboard#activity'
- %w(starred_project_activity, 'project_activity)
+ %w(starred_project_activity project_activity)
when 'groups#index'
%w(groups)
when 'todos#index'
@@ -38,7 +38,7 @@ module DashboardHelper
end
end
- def is_default_dashboard?(user = current_user)
+ def user_default_dashboard?(user = current_user)
controller_action_to_child_dashboards.any? {|dashboard| dashboard == user.dashboard }
end