mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Actually cache the template names.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -386,7 +386,7 @@ module ActionView #:nodoc:
|
||||
#
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user