aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorrohit <rohit.arondekar@gmail.com>2010-06-21 13:58:02 +0530
committerJosé Valim <jose.valim@gmail.com>2010-06-21 11:10:19 +0200
commit45b263cbf1256f09f5bd9c70303b3d5162c066d4 (patch)
treed33c044f875c2d6287d69ef20be4ebcbd746fadf /activesupport/lib
parentb311dbb0ba2f3679a21fd7cb53b867c580e1e809 (diff)
downloadrails-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>
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/file_update_checker.rb4
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