mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Reload cached templates when a new handler is registered
This commit is contained in:
parent
b415538b5d
commit
f31651bd6a
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue