mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove deprecated tasks in railties
This commit is contained in:
parent
7563bf7b46
commit
f7782812f7
2 changed files with 5 additions and 12 deletions
|
@ -1,3 +1,8 @@
|
|||
* Remove deprecated tasks: `rails:update`, `rails:template`, `rails:template:copy`,
|
||||
`rails:update:configs` and `rails:update:bin`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
||||
* Remove deprecated file `rails/rack/debugger`.
|
||||
|
||||
*Rafael Mendonça França*
|
||||
|
|
|
@ -73,15 +73,3 @@ namespace :app do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
namespace :rails do
|
||||
%i(update template templates:copy update:configs update:bin).each do |task_name|
|
||||
task "#{task_name}" do
|
||||
ActiveSupport::Deprecation.warn(<<-MSG.squish)
|
||||
Running #{task_name} with the rails: namespace is deprecated in favor of app: namespace.
|
||||
Run bin/rails app:#{task_name} instead.
|
||||
MSG
|
||||
Rake.application.invoke_task("app:#{task_name}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue