diff options
author | Xavier Noria <fxn@hashref.com> | 2015-11-08 14:47:15 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2015-11-08 22:49:50 -0800 |
commit | 7ea3207f416b01e89fd4a8e61cb9a2257bb7e991 (patch) | |
tree | 1288ff165c53f422409482ee659e0f40bddcc377 /activesupport/lib/active_support/file_evented_update_checker.rb | |
parent | a62387d620b8b6862922b6a359b76c584986075d (diff) | |
download | rails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.tar.gz rails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.tar.bz2 rails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.zip |
s/@modified/@updated/g
Diffstat (limited to 'activesupport/lib/active_support/file_evented_update_checker.rb')
-rw-r--r-- | activesupport/lib/active_support/file_evented_update_checker.rb | 12 |
1 files 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 |