instructeurs: alias instructeur.email

This also means we need to replace instances of `pluck` on the email
column.
This commit is contained in:
Pierre de La Morinerie 2019-10-15 16:32:18 +00:00
parent cd478b489e
commit a462edb9bc
10 changed files with 15 additions and 11 deletions

View file

@ -94,7 +94,7 @@ class DossierSerializer < ActiveModel::Serializer
end
def instructeurs
object.followers_instructeurs.pluck(:email)
object.followers_instructeurs.map(&:email)
end
def created_at