diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/file_evented_update_checker.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/file_evented_update_checker.rb b/activesupport/lib/active_support/file_evented_update_checker.rb index 5a7e0d2794..70d38c10bb 100644 --- a/activesupport/lib/active_support/file_evented_update_checker.rb +++ b/activesupport/lib/active_support/file_evented_update_checker.rb @@ -4,8 +4,6 @@ require 'pathname' module ActiveSupport class FileEventedUpdateChecker - attr_reader :listener - def initialize(files, dirs={}, &block) @files = files.map {|f| expand_path(f)}.to_set @@ -18,8 +16,7 @@ module ActiveSupport @modified = false if (watch_dirs = base_directories).any? - @listener = Listen.to(*watch_dirs, &method(:changed)) - @listener.start + Listen.to(*watch_dirs, &method(:changed)).start end end |