modify experts avis controllers, concern and serializer
This commit is contained in:
parent
5519ee8417
commit
38740d1b5b
4 changed files with 136 additions and 17 deletions
|
@ -1,12 +1,11 @@
|
|||
class AvisSerializer < ActiveModel::Serializer
|
||||
attributes :email,
|
||||
:answer,
|
||||
attributes :answer,
|
||||
:introduction,
|
||||
:created_at,
|
||||
:answered_at
|
||||
|
||||
def email
|
||||
object.email_to_display
|
||||
object.expert.email
|
||||
end
|
||||
|
||||
def created_at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue