Skip to content
Snippets Groups Projects
Unverified Commit 8c4399e5 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Lint

parent 76bc9eef
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -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
Loading
Loading
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment