method

new

rails latest stable - Class: ActiveRecord::Coders::JSON

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

new(options = nil)
public

No documentation available.

# File activerecord/lib/active_record/coders/json.rb, line 10
      def initialize(options = nil)
        @options = options ? DEFAULT_OPTIONS.merge(options) : DEFAULT_OPTIONS
        @encoder = ActiveSupport::JSON::Encoding.json_encoder.new(options)
      end