Navigation Menu

Skip to content

Commit

Permalink
Initialize variables in file update checker to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Apr 5, 2012
1 parent b1e5504 commit b621ded
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions activesupport/lib/active_support/file_update_checker.rb
Expand Up @@ -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
Expand Down

0 comments on commit b621ded

Please sign in to comment.