demarches-normaliennes/app/serializers/piece_justificative_serializer.rb
2018-10-31 11:43:48 +01:00

11 lines
229 B
Ruby

class PieceJustificativeSerializer < ActiveModel::Serializer
attributes :created_at,
:type_de_piece_justificative_id,
:content_url
has_one :user
def created_at
object.created_at&.in_time_zone('UTC')
end
end