.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_annotations,
|
||||||
updated_avis,
|
updated_avis,
|
||||||
updated_messagerie
|
updated_messagerie
|
||||||
].map { |query| query.distinct.ids }.flatten.uniq
|
].flat_map { |query| query.distinct.ids }.uniq
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue