aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorEliot Sykes <eliotsykes@gmail.com>2017-08-25 16:30:33 +0100
committerEliot Sykes <eliotsykes@gmail.com>2017-08-25 16:33:59 +0100
commit272df8fcedcb8ff6b36b3e8953d17f552e1fc624 (patch)
tree3c90ea610c40a785068fa3bd8732b535b0d738b7 /railties
parent14c1a9c5e3471decee9ad09b91024a4293f1b2c2 (diff)
downloadrails-272df8fcedcb8ff6b36b3e8953d17f552e1fc624.tar.gz
rails-272df8fcedcb8ff6b36b3e8953d17f552e1fc624.tar.bz2
rails-272df8fcedcb8ff6b36b3e8953d17f552e1fc624.zip
Minimize Spring.watch calls
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/spring.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/spring.rb b/railties/lib/rails/generators/rails/app/templates/config/spring.rb
index 9fa7863f99..db5bf1307a 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/spring.rb
+++ b/railties/lib/rails/generators/rails/app/templates/config/spring.rb
@@ -1,6 +1,6 @@
-%w[
- .ruby-version
- .rbenv-vars
- tmp/restart.txt
- tmp/caching-dev.txt
-].each { |path| Spring.watch(path) }
+Spring.watch(
+ ".ruby-version",
+ ".rbenv-vars",
+ "tmp/restart.txt",
+ "tmp/caching-dev.txt"
+)