Commit 8c4399e5 authored by Luke Bennett's avatar Luke Bennett

Lint

parent 76bc9eef
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment