This commit is contained in:
Luke Bennett 2018-09-13 16:01:33 +01:00
parent 76bc9eefbb
commit 8c4399e530
No known key found for this signature in database
GPG Key ID: 402ED51FB5D306C2
2 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -6,7 +6,8 @@ class UserCallout < ActiveRecord::Base
enum feature_name: {
gke_cluster_integration: 1,
gcp_signup_offer: 2,
gold_trial: 3
cluster_security_warning: 3,
gold_trial: 4
}
validates :user, presence: true