.map.flatten -> .flat_map

This commit is contained in:
gregoirenovel 2018-01-15 21:34:32 +01:00
parent c3754a173f
commit 83be054884

View file

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