.map.flatten -> .flat_map
This commit is contained in:
parent
c3754a173f
commit
83be054884
1 changed files with 1 additions and 1 deletions
|
@ -217,6 +217,6 @@ class Gestionnaire < ActiveRecord::Base
|
|||
updated_annotations,
|
||||
updated_avis,
|
||||
updated_messagerie
|
||||
].map { |query| query.distinct.ids }.flatten.uniq
|
||||
].flat_map { |query| query.distinct.ids }.uniq
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue