Method: ActionView::Template::Handlers#unregister_template_handler
- Defined in:
- actionview/lib/action_view/template/handlers.rb
#unregister_template_handler(*extensions) ⇒ Object
Opposite to register_template_handler.
40 41 42 43 44 45 46 |
# File 'actionview/lib/action_view/template/handlers.rb', line 40 def unregister_template_handler(*extensions) extensions.each do |extension| handler = @@template_handlers.delete extension.to_sym @@default_template_handlers = nil if @@default_template_handlers == handler end @@template_extensions = nil end |