Method: Array#as_json
- Defined in:
- activesupport/lib/active_support/core_ext/object/json.rb
#as_json(options = nil) ⇒ Object
:nodoc:
164 165 166 167 168 169 170 171 |
# File 'activesupport/lib/active_support/core_ext/object/json.rb', line 164 def as_json( = nil) # :nodoc: if = .dup.freeze unless .frozen? map { |v| v.as_json() } else map { |v| v.as_json } end end |