method
new
rails latest stable - Class:
ActiveRecord::Coders::JSON
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