method

encode

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveSupport::JSON::Encoding::Encoder
encode(value, use_options = true) 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 45
        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
Register or log in to add new notes.