Flowdock
method

options_for

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveSupport::JSON::Encoding::Encoder

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.0.2) is shown here.

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 62
        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.dup
          end
        end
Register or log in to add new notes.