sutty/config/spring.rb

15 lines
366 B
Ruby
Raw Normal View History

# https://github.com/thoughtbot/ember-cli-rails/issues/479#issuecomment-241302961
Spring::Watcher::Listen.class_eval do
def base_directories
%w(app config db lib test vendor)
.uniq.map { |path| Pathname.new(File.join(root, path)) }
end
end
2018-01-02 17:19:25 +00:00
%w(
.ruby-version
.rbenv-vars
tmp/restart.txt
tmp/caching-dev.txt
).each { |path| Spring.watch(path) }