5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 21:46:22 +00:00
panel/config/spring.rb
2019-03-26 12:32:20 -03:00

16 lines
397 B
Ruby

# frozen_string_literal: true
# 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
%w[
.ruby-version
.rbenv-vars
tmp/restart.txt
tmp/caching-dev.txt
].each { |path| Spring.watch(path) }