aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-11-08 14:47:15 -0800
committerXavier Noria <fxn@hashref.com>2015-11-08 22:49:50 -0800
commit7ea3207f416b01e89fd4a8e61cb9a2257bb7e991 (patch)
tree1288ff165c53f422409482ee659e0f40bddcc377 /activesupport
parenta62387d620b8b6862922b6a359b76c584986075d (diff)
downloadrails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.tar.gz
rails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.tar.bz2
rails-7ea3207f416b01e89fd4a8e61cb9a2257bb7e991.zip
s/@modified/@updated/g
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/file_evented_update_checker.rb12
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