Class: Spotlight::TaggingSerializer

Inherits:
Object
  • Object
show all
Defined in:
app/serializers/spotlight/exhibit_export_serializer.rb

Instance Method Summary collapse

Instance Method Details

#filter(keys) ⇒ Object



30
31
32
33
34
35
# File 'app/serializers/spotlight/exhibit_export_serializer.rb', line 30

def filter keys
  keys = super
  keys -= [:tagger_type]
  keys -= [:context] # context conflicts with ActiveRecord methods; fortunately, we only have the default context
  keys += [:taggable_id]
end