diff options
author | claudiob <claudiob@gmail.com> | 2016-02-20 10:06:19 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2016-02-20 10:06:19 -0800 |
commit | 191866f75b6c685c89ad94658859c81be74a6ec0 (patch) | |
tree | 3b236510c4cec957bfd930e07103afaffa89e1b0 /railties/lib | |
parent | 1a5941e3cfb67056a9468d590f8ae03485f75ccc (diff) | |
download | rails-191866f75b6c685c89ad94658859c81be74a6ec0.tar.gz rails-191866f75b6c685c89ad94658859c81be74a6ec0.tar.bz2 rails-191866f75b6c685c89ad94658859c81be74a6ec0.zip |
Invoke 'rails' instead of 'rake' in AppGenerator
Follows the convention from Rails 5 of invoking tasks on the command-line
with `rails …` rather than `rake …`.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index bd7f3f2c6b..5fa487b78e 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -216,7 +216,7 @@ module Rails log :rake, command env = options[:env] || ENV["RAILS_ENV"] || 'development' sudo = options[:sudo] && RbConfig::CONFIG['host_os'] !~ /mswin|mingw/ ? 'sudo ' : '' - in_root { run("#{sudo}#{extify(:rake)} #{command} RAILS_ENV=#{env}", verbose: false) } + in_root { run("#{sudo}#{extify(:rails)} #{command} RAILS_ENV=#{env}", verbose: false) } end alias :rails_command :rake |