diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2016-02-24 12:09:17 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2016-02-24 12:09:17 +0100 |
commit | ef06afe29a4e25109c7959d57dcdf55983ec7c23 (patch) | |
tree | d8dc703f9f6c799017a7144683bbc94ddafd8021 /railties/lib | |
parent | 22db455dbe9c26fe6d723cac0758705d9943ea4b (diff) | |
parent | 191866f75b6c685c89ad94658859c81be74a6ec0 (diff) | |
download | rails-ef06afe29a4e25109c7959d57dcdf55983ec7c23.tar.gz rails-ef06afe29a4e25109c7959d57dcdf55983ec7c23.tar.bz2 rails-ef06afe29a4e25109c7959d57dcdf55983ec7c23.zip |
Merge pull request #23795 from claudiob/replace-rack-with-rails-command
AppGenerator: Replace 'rake' with 'rails_command'
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/actions.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/actions.rb b/railties/lib/rails/generators/actions.rb index 9ca731347a..5fa487b78e 100644 --- a/railties/lib/rails/generators/actions.rb +++ b/railties/lib/rails/generators/actions.rb @@ -216,8 +216,9 @@ 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 # Just run the capify command in root # |