metamaps--metamaps/app/serializers/token_serializer.rb

15 lines
330 B
Ruby
Raw Normal View History

class TokenSerializer < ActiveModel::Serializer
embed :ids, include: true
attributes :id,
:token,
:description,
:user_id,
:created_at,
:updated_at
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end