aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers.rb
diff options
context:
space:
mode:
authorChris Kelly <ckdake@ckdake.com>2012-02-20 14:35:30 -0500
committerChris Kelly <ckdake@ckdake.com>2012-02-20 14:35:30 -0500
commit68d3a4619490a0d9df1951f38068bd06d9e0fbb9 (patch)
treeaf11d970322b2527eb7101a992e33068c5669aae /actionpack/lib/action_view/template/handlers.rb
parent3b824d66cd17965e3a9e76e36d569cf14463dcec (diff)
downloadrails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.tar.gz
rails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.tar.bz2
rails-68d3a4619490a0d9df1951f38068bd06d9e0fbb9.zip
Reset memoized hash keys when new entry added
Diffstat (limited to 'actionpack/lib/action_view/template/handlers.rb')
-rw-r--r--actionpack/lib/action_view/template/handlers.rb1
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