method
with_backend
v4.2.7 -
Show latest stable
- Class:
ActiveSupport::XmlMini
with_backend(name)public
No documentation available.
# File activesupport/lib/active_support/xml_mini.rb, line 96
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