Flowdock
method

options_for

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActiveSupport::JSON::Encoding::Encoder
options_for(value) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.