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