Permalink
Browse files

Remove deprecated tasks in railties

  • Loading branch information...
rafaelfranca committed Jan 4, 2017
1 parent 7563bf7 commit f7782812f7e727178e4a743aa2874c078b722eef
Showing with 5 additions and 12 deletions.
  1. +5 −0 railties/CHANGELOG.md
  2. +0 −12 railties/lib/rails/tasks/framework.rake
View
@@ -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

0 comments on commit f778281

Please sign in to comment.