class method
self.with_backend
Ruby on Rails 4.0.13
Since v2.3.18 Last seen in v4.0.13Signature
self.with_backend(name)
No documentation comment.
Parameters
-
namereq
Source
# File activesupport/lib/active_support/json/decoding.rb, line 35
def with_backend(name)
old_backend, self.backend = backend, name
yield
ensure
self.backend = old_backend
end
Defined in activesupport/lib/active_support/json/decoding.rb line 35
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::JSON