aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-05-23 17:26:09 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-05-23 17:26:09 -0400
commit49df9043c63bb08c3ad26631221f842516be616c (patch)
tree0e0d77c640c9a3829bef851f75e509b7f3fc6251 /railties
parent2e6e8142a2bdc0cd6153f7f4adb7421db814498c (diff)
parent272df8fcedcb8ff6b36b3e8953d17f552e1fc624 (diff)
downloadrails-49df9043c63bb08c3ad26631221f842516be616c.tar.gz
rails-49df9043c63bb08c3ad26631221f842516be616c.tar.bz2
rails-49df9043c63bb08c3ad26631221f842516be616c.zip
Merge pull request #30406 from eliotsykes/reduce-spring-watch-calls
Minimize Spring.watch calls
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/spring.rb.tt12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/spring.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/spring.rb.tt
index 9fa7863f99..db5bf1307a 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/spring.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/spring.rb.tt
@@ -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"
+)