aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-23 13:47:30 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-23 13:47:30 -0500
commit55adaa2efc08c892bf7be55d79ac571848068256 (patch)
tree1e52562f708f64d38ad95e57e42ab39c3ff82ab2 /actionpack/lib/action_view/base.rb
parente0db925be04ab3e9c3db67dd0daa8caf3680dd21 (diff)
downloadrails-55adaa2efc08c892bf7be55d79ac571848068256.tar.gz
rails-55adaa2efc08c892bf7be55d79ac571848068256.tar.bz2
rails-55adaa2efc08c892bf7be55d79ac571848068256.zip
Fixed bc5896e, and added test case for the caching bug it originally introduced.
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index c769013d42..bdcb1dc246 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -332,6 +332,9 @@ module ActionView #:nodoc:
end
end
+ extend ActiveSupport::Memoizable
+ memoize :pick_template
+
private
# Renders the template present at <tt>template_path</tt>. The hash in <tt>local_assigns</tt>
# is made available as local variables.