From ead99f3f2e7085688b7d31b2cf2af9aecc1a1982 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 5 Jul 2006 02:17:25 +0000 Subject: Fixed that real files and symlinks should be treated the same when compiling templates (closes #5438) [zachary@panandscan.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb index d3758f4583..87b0174703 100644 --- a/actionpack/lib/action_view/base.rb +++ b/actionpack/lib/action_view/base.rb @@ -425,7 +425,8 @@ module ActionView #:nodoc: if @@compile_time[render_symbol] && supports_local_assigns?(render_symbol, local_assigns) if file_name && !@@cache_template_loading - @@compile_time[render_symbol] < File.mtime(file_name) + @@compile_time[render_symbol] < File.mtime(file_name) || (File.symlink?(file_name) ? + @@compile_time[render_symbol] < File.lstat(file_name).mtime : false) end else true -- cgit v1.2.3