Module: Roar::JSON::ClassMethods

Defined in:
lib/roar/json.rb

Instance Method Summary collapse

Instance Method Details

TODO: move to instance method, or remove?



37
38
39
40
41
42
43
44
45
# File 'lib/roar/json.rb', line 37

def links_definition_options
  # FIXME: this doesn't belong into the generic JSON representer.
  {
    class:          Hypermedia::Hyperlink,
    decorator:      HyperlinkDecorator,
    collection:     true,
    exec_context:   :decorator
  }
end