From f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb Mon Sep 17 00:00:00 2001 From: Pratik Naik Date: Sun, 15 Jun 2008 17:20:31 +0100 Subject: Reload cached templates when a new handler is registered --- actionpack/lib/action_view/template_handlers.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/action_view/template_handlers.rb b/actionpack/lib/action_view/template_handlers.rb index 1471e99e01..02945addda 100644 --- a/actionpack/lib/action_view/template_handlers.rb +++ b/actionpack/lib/action_view/template_handlers.rb @@ -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 -- cgit v1.2.3