mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
41ad613e4c
`rake routes` was a public task. Therefore, I think that we should deprecate it before deleting it. Related to #32121.
9 lines
302 B
Ruby
9 lines
302 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails/command"
|
|
require "active_support/deprecation"
|
|
|
|
task routes: :environment do
|
|
ActiveSupport::Deprecation.warn("Using `bin/rake routes` is deprecated and will be removed in Rails 6.1. Use `bin/rails routes` instead.\n")
|
|
Rails::Command.invoke "routes"
|
|
end
|