instructeurs: alias instructeur.email
This also means we need to replace instances of `pluck` on the email column.
This commit is contained in:
parent
cd478b489e
commit
a462edb9bc
10 changed files with 15 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue