aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 84c8040760..683cb8af6f 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -238,7 +238,8 @@ module ActionView #:nodoc:
end
def template_exists?(template_path, extension)
- FileTest.exists?(full_template_path(template_path, extension))
+ (cache_template_loading && @@loaded_templates.has_key?(template_path)) ||
+ FileTest.exists?(full_template_path(template_path, extension))
end
def read_template_file(template_path)