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