Permalink
Browse files

Initialize variables in file update checker to avoid warnings

  • Loading branch information...
1 parent b1e5504 commit b621ded8130a98c6089a6be9bdeec5865b51fe38 @carlosantoniodasilva carlosantoniodasilva committed Apr 5, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 activesupport/lib/active_support/file_update_checker.rb
View
3 activesupport/lib/active_support/file_update_checker.rb
@@ -54,6 +54,9 @@ def initialize(files, dirs={}, &block)
@glob = compile_glob(dirs)
@block = block
+ @watched = nil
+ @updated_at = nil
+
@last_watched = watched
@last_update_at = updated_at(@last_watched)
end

0 comments on commit b621ded

Please sign in to comment.