1
0
Fork 0
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:
Pratik Naik 2008-06-15 17:20:31 +01:00
parent b415538b5d
commit f31651bd6a

View file

@ -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