Skip to content

Instantly share code, notes, and snippets.

@jeromedalbert
Created September 27, 2018 18:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeromedalbert/5313fb4f53fc20b78dd086331086878b to your computer and use it in GitHub Desktop.
config/spring.rb
class Spring::Watcher::Listen
def base_directories
%w(app config lib spec)
.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) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment