just don't include mappable for now
This commit is contained in:
parent
f072e39c4c
commit
3aec00e07c
1 changed files with 4 additions and 2 deletions
|
@ -4,10 +4,12 @@ class NewMappingSerializer < ActiveModel::Serializer
|
|||
:xloc,
|
||||
:yloc,
|
||||
:created_at,
|
||||
:updated_at
|
||||
:updated_at,
|
||||
:mappable_id,
|
||||
:mappable_type
|
||||
|
||||
has_one :user, serializer: NewUserSerializer
|
||||
has_one :map, serializer: NewMapSerializer
|
||||
has_one :mappable, polymorphic: true ##?
|
||||
|
||||
def filter(keys)
|
||||
keys.delete(:xloc) unless object.mappable_type == "Topic"
|
||||
|
|
Loading…
Reference in a new issue