From b621ded8130a98c6089a6be9bdeec5865b51fe38 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 5 Apr 2012 14:44:05 -0300 Subject: [PATCH] Initialize variables in file update checker to avoid warnings --- activesupport/lib/active_support/file_update_checker.rb | 3 +++ 1 file changed, 3 insertions(+) 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