diff options
author | roberts1000 <roberts@corlewsolutions.com> | 2017-07-31 17:29:50 -0400 |
---|---|---|
committer | Robert Soly <robert.m.soly@uscis.dhs.gov> | 2017-07-31 21:55:54 +0000 |
commit | c2e3397230615b990c275c789ab313fd00c4004f (patch) | |
tree | 7c950d5214e3e72a64700a217b38a4143c1e75a3 /railties/lib/rails | |
parent | 83ce68e78deb01658470ad7f7cd7abde0a493746 (diff) | |
download | rails-c2e3397230615b990c275c789ab313fd00c4004f.tar.gz rails-c2e3397230615b990c275c789ab313fd00c4004f.tar.bz2 rails-c2e3397230615b990c275c789ab313fd00c4004f.zip |
Fix rubocop style issues in yarn and spring.rb templates"
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/bin/yarn | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/spring.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/yarn b/railties/lib/rails/generators/rails/app/templates/bin/yarn index 44f75c22a4..c2f9b6768a 100644 --- a/railties/lib/rails/generators/rails/app/templates/bin/yarn +++ b/railties/lib/rails/generators/rails/app/templates/bin/yarn @@ -1,7 +1,7 @@ VENDOR_PATH = File.expand_path('..', __dir__) Dir.chdir(VENDOR_PATH) do begin - exec "yarnpkg #{ARGV.join(" ")}" + exec "yarnpkg #{ARGV.join(' ')}" rescue Errno::ENOENT $stderr.puts "Yarn executable was not detected in the system." $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" 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 c9119b40c0..9fa7863f99 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( +%w[ .ruby-version .rbenv-vars tmp/restart.txt tmp/caching-dev.txt -).each { |path| Spring.watch(path) } +].each { |path| Spring.watch(path) } |