aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-03-22 17:24:20 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-03-22 17:24:20 -0300
commitb9a21f08563b7d4b77f4c48b73acd877178d55c3 (patch)
tree35fbecd85e5ef298e3a98b20c244ee5b3bec8356 /railties
parent8857e0604907969550cc6fbba29fd4d78928f9cd (diff)
parent2fbdcaf58419842e96d0b3226e15f4b1623de075 (diff)
downloadrails-b9a21f08563b7d4b77f4c48b73acd877178d55c3.tar.gz
rails-b9a21f08563b7d4b77f4c48b73acd877178d55c3.tar.bz2
rails-b9a21f08563b7d4b77f4c48b73acd877178d55c3.zip
Merge pull request #24278 from keram/rails_code_convention
Use || instead of `or` in bin/(update|setup) tpl as preferred by rails code convention
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/bin/setup2
-rw-r--r--railties/lib/rails/generators/rails/app/templates/bin/update2
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/setup b/railties/lib/rails/generators/rails/app/templates/bin/setup
index df88bfd3bc..acae810c1a 100644
--- a/railties/lib/rails/generators/rails/app/templates/bin/setup
+++ b/railties/lib/rails/generators/rails/app/templates/bin/setup
@@ -15,7 +15,7 @@ chdir APP_ROOT do
puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
- system('bundle check') or system!('bundle install')
+ system('bundle check') || system!('bundle install')
# puts "\n== Copying sample files =="
# unless File.exist?('config/database.yml')
diff --git a/railties/lib/rails/generators/rails/app/templates/bin/update b/railties/lib/rails/generators/rails/app/templates/bin/update
index c6ed3ae64b..770a605fed 100644
--- a/railties/lib/rails/generators/rails/app/templates/bin/update
+++ b/railties/lib/rails/generators/rails/app/templates/bin/update
@@ -15,7 +15,7 @@ chdir APP_ROOT do
puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
- system 'bundle check' or system! 'bundle install'
+ system('bundle check') || system!('bundle install')
puts "\n== Updating database =="
system! 'bin/rails db:migrate'