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

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
This commit is contained in:
Toshi MARUYAMA 2019-11-06 12:04:10 +00:00
parent 1797f7abb0
commit f554624614

View File

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