From f84fc30d07e83f107312c5c0aa950fead581086b Mon Sep 17 00:00:00 2001 From: rohit Date: Mon, 21 Jun 2010 13:58:02 +0530 Subject: [PATCH] Initialize @last_update_at in file_update_checker to hide warnings in AS test suite. --- .../lib/active_support/file_update_checker.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb index c0b5ca4..5f5b264 100644 --- a/activesupport/lib/active_support/file_update_checker.rb +++ b/activesupport/lib/active_support/file_update_checker.rb @@ -19,7 +19,7 @@ module ActiveSupport def initialize(paths, calculate=false, &block) @paths = paths @block = block - @last_update_at = updated_at if calculate + @last_update_at = calculate ? updated_at : nil end def updated_at @@ -34,4 +34,4 @@ module ActiveSupport end end end -end \ No newline at end of file +end -- 1.7.0.4