method

encode

rails latest stable - 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.

encode(value, use_options = true)
public

No documentation available.

# File activesupport/lib/active_support/json/encoding.rb, line 48
        def encode(value, use_options = true)
          check_for_circular_references(value) do
            jsonified = use_options ? value.as_json(options_for(value)) : value.as_json
            jsonified.encode_json(self)
          end
        end