mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Reload cached templates when a new handler is registered
This commit is contained in:
@@ -28,6 +28,7 @@ module ActionView #:nodoc:
|
||||
# return the rendered template as a string.
|
||||
def register_template_handler(extension, klass)
|
||||
@@template_handlers[extension.to_sym] = klass
|
||||
ActionView::TemplateFinder.reload!
|
||||
end
|
||||
|
||||
def template_handler_extensions
|
||||
|
||||
Reference in New Issue
Block a user