Enable Style/WordArray
This commit is contained in:
parent
d1439f8a52
commit
6eeba14885
19 changed files with 23 additions and 22 deletions
|
@ -174,7 +174,7 @@ class DossierFieldService
|
|||
end
|
||||
|
||||
def assert_valid_order(order)
|
||||
if !%w[asc desc].include?(order)
|
||||
if !["asc", "desc"].include?(order)
|
||||
raise "Invalid order #{order}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue