From 7964e7d6a1c77e470b93ca3cca69b03f506505ac Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 19 Jun 2015 14:59:07 -0400 Subject: [PATCH] Move the User dashboard enum further up in the class --- app/models/user.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 982c05212ce..b075795d40b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -172,6 +172,9 @@ class User < ActiveRecord::Base after_create :post_create_hook after_destroy :post_destroy_hook + # User's Dashboard preference + # Note: When adding an option, it MUST go on the end of the array. + enum dashboard: [:projects, :stars] alias_attribute :private_token, :authentication_token @@ -704,8 +707,4 @@ class User < ActiveRecord::Base def can_be_removed? !solo_owned_groups.present? end - - # User's Dashboard preference - # Note: When adding an option, it MUST go on the end of the array. - enum dashboard: [:projects, :stars] end -- GitLab