From d9435cf2f6dbb50762bd1e4cf6d9b14be7566062 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 8 Nov 2019 01:37:04 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in app/models/user.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18939 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/user.rb | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index e4291580e..c7612c91b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -755,7 +755,8 @@ class User < Principal (!admin? || User.active.admin.where("id <> ?", id).exists?) end - safe_attributes 'firstname', + safe_attributes( + 'firstname', 'lastname', 'mail', 'mail_notification', @@ -763,21 +764,21 @@ class User < Principal 'language', 'custom_field_values', 'custom_fields', - 'identity_url' - - safe_attributes 'login', - :if => lambda {|user, current_user| user.new_record?} - - safe_attributes 'status', + 'identity_url') + safe_attributes( + 'login', + :if => lambda {|user, current_user| user.new_record?}) + safe_attributes( + 'status', 'auth_source_id', 'generate_password', 'must_change_passwd', 'login', 'admin', - :if => lambda {|user, current_user| current_user.admin?} - - safe_attributes 'group_ids', - :if => lambda {|user, current_user| current_user.admin? && !user.new_record?} + :if => lambda {|user, current_user| current_user.admin?}) + safe_attributes( + 'group_ids', + :if => lambda {|user, current_user| current_user.admin? && !user.new_record?}) # Utility method to help check if a user should be notified about an # event.