diff options
author | rohit <rohit.arondekar@gmail.com> | 2010-06-21 13:58:02 +0530 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-21 11:10:19 +0200 |
commit | 45b263cbf1256f09f5bd9c70303b3d5162c066d4 (patch) | |
tree | d33c044f875c2d6287d69ef20be4ebcbd746fadf | |
parent | b311dbb0ba2f3679a21fd7cb53b867c580e1e809 (diff) | |
download | rails-45b263cbf1256f09f5bd9c70303b3d5162c066d4.tar.gz rails-45b263cbf1256f09f5bd9c70303b3d5162c066d4.tar.bz2 rails-45b263cbf1256f09f5bd9c70303b3d5162c066d4.zip |
Initialize @last_update_at in file_update_checker to hide warnings in AS test suite.
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r-- | activesupport/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 c0b5ca4deb..5f5b264eb9 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 |