summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 09:18:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 09:18:07 +0000
commit8688fd10ebd80912b1fc8e687fe13cc6a39c9aaa (patch)
tree878028779ea3be72dc55cc777f824fee55336c30
parent894aa10ffcb69f856314a80c427bee1022989710 (diff)
downloadredmine-8688fd10ebd80912b1fc8e687fe13cc6a39c9aaa.tar.gz
redmine-8688fd10ebd80912b1fc8e687fe13cc6a39c9aaa.zip
cleanup: rubocop: fix Layout/AlignArguments in app/models/project.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18998 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/models/project.rb15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 9568a5b85..8a41d45e5 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -738,7 +738,8 @@ class Project < ActiveRecord::Base
target.destroy unless target.blank?
end
- safe_attributes 'name',
+ safe_attributes(
+ 'name',
'description',
'homepage',
'is_public',
@@ -749,9 +750,10 @@ class Project < ActiveRecord::Base
'issue_custom_field_ids',
'parent_id',
'default_version_id',
- 'default_assigned_to_id'
+ 'default_assigned_to_id')
- safe_attributes 'enabled_module_names',
+ safe_attributes(
+ 'enabled_module_names',
:if => lambda {|project, user|
if project.new_record?
if user.admin?
@@ -762,10 +764,11 @@ class Project < ActiveRecord::Base
else
user.allowed_to?(:select_project_modules, project)
end
- }
+ })
- safe_attributes 'inherit_members',
- :if => lambda {|project, user| project.parent.nil? || project.parent.visible?(user)}
+ safe_attributes(
+ 'inherit_members',
+ :if => lambda {|project, user| project.parent.nil? || project.parent.visible?(user)})
def safe_attributes=(attrs, user=User.current)
if attrs.respond_to?(:to_unsafe_hash)