diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index d4cfc6edfaad2..4f32e3982295a 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed that cached template loading would still check the file system to see if the file existed #258 [Andreas Schwarz] + * Added options to tailor header tag, div id, and div class on ActiveRecordHelper#error_messages_for [josh] * Added graceful handling of non-alphanumeric names and misplaced brackets in input parameters [bitsweat] diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index 84c80407600d0..683cb8af6fecc 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -238,7 +238,8 @@ def full_template_path(template_path, extension) 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)