metamaps--metamaps/app/serializers/map_serializer.rb
2016-03-11 17:16:04 +11:00

21 lines
450 B
Ruby

class MapSerializer < ActiveModel::Serializer
embed :ids, include: true
attributes :id,
:name,
:desc,
:permission,
:screenshot,
:created_at,
:updated_at
has_many :topics
has_many :synapses
has_many :mappings
has_many :contributors, root: :users
#def filter(keys)
# keys.delete(:outcome_author) unless object.outcome_author.present?
# keys
#end
end