mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 16:41:31 +00:00
Fix a RuboCop offense Style/MultipleComparison (#33083).
git-svn-id: http://svn.redmine.org/redmine/trunk@19563 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7a97dba9ab
commit
3614346962
@ -924,7 +924,7 @@ class Query < ActiveRecord::Base
|
||||
end
|
||||
end
|
||||
|
||||
if field == 'project_id' || (self.type == 'ProjectQuery' && (field == 'id' || field == 'parent_id'))
|
||||
if field == 'project_id' || (self.type == 'ProjectQuery' && %w[id parent_id].include?(field))
|
||||
if v.delete('mine')
|
||||
v += User.current.memberships.map(&:project_id).map(&:to_s)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user