25 Dec '13, 3am

as_json (ActiveModel::Serializers::JSON) - APIdock

controls the top-level behavior of as_json . If true (the default) as_json will emit a single root node named after the object’s type. For example:

Full article: http://apidock.com/rails/ActiveModel/Serializers/JSON/as_...

Tweets