Permalink
Browse files

Actually cache the template names.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 78fb61a commit 7106dca97779677070b134ae3c87e88b8a8b2c9d @NZKoz NZKoz committed Nov 14, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/base.rb
@@ -386,7 +386,7 @@ def compile_and_render_template(extension, template = nil, file_path = nil, loca
#
def full_template_path(template_path, extension)
if @@cache_template_extensions
- (@@cached_base_paths[template_path] ||= {})[extension.to_s] = find_full_template_path(template_path, extension)
+ (@@cached_base_paths[template_path] ||= {})[extension.to_s] ||= find_full_template_path(template_path, extension)
else
find_full_template_path(template_path, extension)
end

0 comments on commit 7106dca

Please sign in to comment.