1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-04 14:49:41 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-08 01:37:04 +00:00
parent f1ad9de8f3
commit d9435cf2f6

View File

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