summaryrefslogtreecommitdiffstats
path: root/app/models/principal.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 12:04:10 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-06 12:04:10 +0000
commitf554624614ea5cc135d9d2ba94d6128415796852 (patch)
treed93b120d448b08d6dba388ed22156bcfe95d4854 /app/models/principal.rb
parent1797f7abb0cdae35b27a294141a2612640f2f440 (diff)
downloadredmine-f554624614ea5cc135d9d2ba94d6128415796852.tar.gz
redmine-f554624614ea5cc135d9d2ba94d6128415796852.zip
cleanup: rubocop: fix Layout/AlignArguments in app/models/principal.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18927 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/principal.rb')
-rw-r--r--app/models/principal.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/principal.rb b/app/models/principal.rb
index 7e5546580..44c7862ed 100644
--- a/app/models/principal.rb
+++ b/app/models/principal.rb
@@ -58,7 +58,8 @@ class Principal < ActiveRecord::Base
active
else
# self and members of visible projects
- active.where("#{table_name}.id = ? OR #{table_name}.id IN (SELECT user_id FROM #{Member.table_name} WHERE project_id IN (?))",
+ active.where(
+ "#{table_name}.id = ? OR #{table_name}.id IN (SELECT user_id FROM #{Member.table_name} WHERE project_id IN (?))",
user.id, user.visible_project_ids
)
end