From 78727dd8e226f16fd2446db0bcaf41e127ba9bc8 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 14 Dec 2007 18:07:20 +0000 Subject: Fixed that ActionView#file_exists? would be incorrect if @first_render is set (closes #10569) [dbussink] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8385 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view/base.rb') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index ee10d8cb0a..5b34b855e1 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -404,7 +404,7 @@ If you are rendering a subtemplate, you must now use controller-like partial syn if template_file_extension template_exists?(template_file_name, template_file_extension) else - pick_template_extension(template_path) + template_exists?(template_file_name, pick_template_extension(template_path)) end end -- cgit v1.2.3