Skip to content

Commit

Permalink
Remove deprecated tasks in railties
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Jan 4, 2017
1 parent 7563bf7 commit f778281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions railties/CHANGELOG.md
@@ -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*
Expand Down
12 changes: 0 additions & 12 deletions railties/lib/rails/tasks/framework.rake
Expand Up @@ -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

0 comments on commit f778281

Please sign in to comment.