method
options_for
v3.2.8 -
Show latest stable
- Class:
ActiveSupport::JSON::Encoding::Encoder
options_for(value)public
No documentation available.
# File activesupport/lib/active_support/json/encoding.rb, line 59
def options_for(value)
if value.is_a?(Array) || value.is_a?(Hash)
# hashes and arrays need to get encoder in the options, so that they can detect circular references
options.merge(:encoder => self)
else
options
end
end