Skip to content
Browse files

Reload cached templates when a new handler is registered

  • Loading branch information...
1 parent b415538 commit f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb @lifo lifo committed Jun 15, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/template_handlers.rb
View
1 actionpack/lib/action_view/template_handlers.rb
@@ -28,6 +28,7 @@ def self.extended(base)
# 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

0 comments on commit f31651b

Please sign in to comment.
Something went wrong with that request. Please try again.