Browse files

Initialize @last_update_at in file_update_checker to hide warnings in…

… AS test suite.

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent b311dbb commit 45b263cbf1256f09f5bd9c70303b3d5162c066d4 @rohit rohit committed with josevalim Jun 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/file_update_checker.rb
View
4 activesupport/lib/active_support/file_update_checker.rb
@@ -19,7 +19,7 @@ class FileUpdateChecker
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 @@ def execute_if_updated
end
end
end
-end
+end

0 comments on commit 45b263c

Please sign in to comment.