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.
257 258 259 |
# File 'app/cms/scrivito/attribute_content.rb', line 257 def as_json( = nil) {id: id} end |