method
backend=
v2.3.8 -
Show latest stable
- Class:
ActiveSupport::JSON
backend=(name)public
No documentation available.
# File activesupport/lib/active_support/json/decoding.rb, line 20
def backend=(name)
if name.is_a?(Module)
@backend = name
else
require "active_support/json/backends/#{name.to_s.downcase}.rb"
@backend = ActiveSupport::JSON::Backends::const_get(name)
end
@parse_error = @backend::ParseError
end