Method: Scrivito::AttributeContent#as_json

Defined in:
app/cms/scrivito/attribute_content.rb

#as_json(options = nil) ⇒ Hash

Note:

Override it in subclasses to fit your needs.

Returns a hash to be used for the JSON serialization.

Parameters:

  • options (Hash) (defaults to: nil)

Returns:

  • (Hash)

See Also:



257
258
259
# File 'app/cms/scrivito/attribute_content.rb', line 257

def as_json(options = nil)
  {id: id}
end