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(options = nil) # :nodoc:
  if options
    options = options.dup.freeze unless options.frozen?
    map { |v| v.as_json(options) }
  else
    map { |v| v.as_json }
  end
end