From 7ea3207f416b01e89fd4a8e61cb9a2257bb7e991 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Sun, 8 Nov 2015 14:47:15 -0800 Subject: s/@modified/@updated/g --- .../lib/active_support/file_evented_update_checker.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/activesupport/lib/active_support/file_evented_update_checker.rb b/activesupport/lib/active_support/file_evented_update_checker.rb index a4dd4ff30c..41ec12d829 100644 --- a/activesupport/lib/active_support/file_evented_update_checker.rb +++ b/activesupport/lib/active_support/file_evented_update_checker.rb @@ -13,9 +13,9 @@ module ActiveSupport @dirs[@ph.xpath(dir)] = Array(exts).map {|ext| @ph.normalize_extension(ext)} end - @block = block - @modified = false - @lcsp = @ph.longest_common_subpath(@dirs.keys) + @block = block + @updated = false + @lcsp = @ph.longest_common_subpath(@dirs.keys) if (watch_dirs = base_directories).any? Listen.to(*watch_dirs, &method(:changed)).start @@ -23,13 +23,13 @@ module ActiveSupport end def updated? - @modified + @updated end def execute @block.call ensure - @modified = false + @updated = false end def execute_if_updated @@ -43,7 +43,7 @@ module ActiveSupport def changed(modified, added, removed) unless updated? - @modified = (modified + added + removed).any? {|f| watching?(f)} + @updated = (modified + added + removed).any? {|f| watching?(f)} end end -- cgit v1.2.3