method
as_json
Ruby on Rails latest stable (v2.3.4)
-
0 notes -
Class: ActiveRecord::Serialization
- v1.0.0
- v1.1.0
- v1.1.1
- v1.1.2
- v1.1.3
- v1.1.4
- v1.1.5
- v1.1.6
- v1.2.0
- v1.2.1
- v1.2.2
- v1.2.3
- v1.2.4
- v1.2.5
- v1.2.6
- v2.0.0
- v2.0.1
- v2.0.2
- v2.0.3
- v2.1.0
- v2.2.1
- v2.3.2
- 2.3.4 (0)
- What's this?
as_json(options = nil)
public
Hide source
# File activerecord/lib/active_record/serializers/json_serializer.rb, line 80 def as_json(options = nil) #:nodoc: hash = Serializer.new(self, options).serializable_record hash = { self.class.model_name.element => hash } if include_root_in_json hash end

