diff options
author | José Valim <jose.valim@gmail.com> | 2012-02-20 11:48:14 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-02-20 11:48:14 -0800 |
commit | 8c870f11f2acecc56bfb6e77db2330cd9bdd9135 (patch) | |
tree | af11d970322b2527eb7101a992e33068c5669aae /actionpack/lib | |
parent | 3b824d66cd17965e3a9e76e36d569cf14463dcec (diff) | |
parent | 68d3a4619490a0d9df1951f38068bd06d9e0fbb9 (diff) | |
download | rails-8c870f11f2acecc56bfb6e77db2330cd9bdd9135.tar.gz rails-8c870f11f2acecc56bfb6e77db2330cd9bdd9135.tar.bz2 rails-8c870f11f2acecc56bfb6e77db2330cd9bdd9135.zip |
Merge pull request #5101 from ckdake/ckdake_actionview_handler_reset
Reset memoized hash keys when new ActionView::Template handler is registered
Diffstat (limited to 'actionpack/lib')
-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 aa693335e3..192e527a7b 100644 --- a/actionpack/lib/action_view/template/handlers.rb +++ b/actionpack/lib/action_view/template/handlers.rb @@ -26,6 +26,7 @@ module ActionView #:nodoc: # return the rendered template as a string. def register_template_handler(extension, klass) @@template_handlers[extension.to_sym] = klass + @@template_extensions = nil end def template_handler_extensions |