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.
22 lines
321 B
Ruby
22 lines
321 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rake"
|
|
|
|
# Load Rails Rakefile extensions
|
|
%w(
|
|
annotations
|
|
dev
|
|
framework
|
|
initializers
|
|
log
|
|
middleware
|
|
misc
|
|
restart
|
|
routes
|
|
tmp
|
|
yarn
|
|
).tap { |arr|
|
|
arr << "statistics" if Rake.application.current_scope.empty?
|
|
}.each do |task|
|
|
load "rails/tasks/#{task}.rake"
|
|
end
|