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