aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-11-04 08:32:33 +0100
committerXavier Noria <fxn@hashref.com>2015-11-08 22:49:49 -0800
commit0462329166cc667c2dc81abc85493e2ae6db5e4c (patch)
tree6f8fa272de244db9795579a8dc517ae10bf473c5 /activesupport/lib
parentc27caeecb693ddbc575302751479b4bdedf28634 (diff)
downloadrails-0462329166cc667c2dc81abc85493e2ae6db5e4c.tar.gz
rails-0462329166cc667c2dc81abc85493e2ae6db5e4c.tar.bz2
rails-0462329166cc667c2dc81abc85493e2ae6db5e4c.zip
no need to have access to the listener
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/file_evented_update_checker.rb5
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