instance method
with_backend
Ruby on Rails 8.0.4
Since v2.3.18Signature
with_backend(name)
No documentation comment.
Parameters
-
namereq
Source
# File activesupport/lib/active_support/xml_mini.rb, line 113
def with_backend(name)
old_backend = current_thread_backend
self.current_thread_backend = name && cast_backend_name_to_module(name)
yield
ensure
self.current_thread_backend = old_backend
end
Defined in activesupport/lib/active_support/xml_mini.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::XmlMini