aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-05 14:44:05 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-04-05 14:49:03 -0300
commitb621ded8130a98c6089a6be9bdeec5865b51fe38 (patch)
treeadf828d6c0c9ff069cec98502c08b8f3f323721b
parentb1e55041ebb33a27121eff4424eeeaee4e4b5028 (diff)
downloadrails-b621ded8130a98c6089a6be9bdeec5865b51fe38.tar.gz
rails-b621ded8130a98c6089a6be9bdeec5865b51fe38.tar.bz2
rails-b621ded8130a98c6089a6be9bdeec5865b51fe38.zip
Initialize variables in file update checker to avoid warnings
-rw-r--r--activesupport/lib/active_support/file_update_checker.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/file_update_checker.rb b/activesupport/lib/active_support/file_update_checker.rb
index c99da22cd6..8860636168 100644
--- a/activesupport/lib/active_support/file_update_checker.rb
+++ b/activesupport/lib/active_support/file_update_checker.rb
@@ -54,6 +54,9 @@ module ActiveSupport
@glob = compile_glob(dirs)
@block = block
+ @watched = nil
+ @updated_at = nil
+
@last_watched = watched
@last_update_at = updated_at(@last_watched)
end