Class: Spotlight::PageRepresenter

Inherits:
Roar::Decorator
  • Object
show all
Includes:
Roar::JSON
Defined in:
app/serializers/spotlight/page_representer.rb

Overview

Serialize an exhibit page

Direct Known Subclasses

NestedPageRepresenter

Instance Method Summary collapse

Instance Method Details

#contentObject



16
17
18
19
# File 'app/serializers/spotlight/page_representer.rb', line 16

def content
  # get the original data, bypassing any Sir-Trevor transformations
  represented.read_attribute(:content)
end