Method: Object#as_json
- Defined in:
- lib/active_support/core_ext/object/json.rb
#as_json(options = nil) ⇒ Object
:nodoc:
52 53 54 55 56 57 58 |
# File 'lib/active_support/core_ext/object/json.rb', line 52 def as_json( = nil) #:nodoc: if respond_to?(:to_hash) to_hash.as_json() else instance_values.as_json() end end |