diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-06-15 17:20:31 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-06-15 17:20:31 +0100 |
commit | f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb (patch) | |
tree | 57cc2e2c1e63a8a1e77275630a09a8e6b0fa35fa /actionpack | |
parent | b415538b5dbf017d20226411a9d25a149f87eb51 (diff) | |
download | rails-f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb.tar.gz rails-f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb.tar.bz2 rails-f31651bd6ac8c3d887a43ee8f71ed7a9bc7877cb.zip |
Reload cached templates when a new handler is registered
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/template_handlers.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |