instance method
with_backend
Ruby on Rails 6.1.7.10
Since v2.3.18Signature
with_backend(name)
No documentation comment.
Parameters
-
namereq
Source
# File activesupport/lib/active_support/xml_mini.rb, line 106
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 106
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::XmlMini