1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/tasks.rb
Benoit Tigeot a2748eda58 Move rake routes task to rails command
After a discussion with matthewd. It was mentioned that rake tasks need
to be moved to rails command.
See: https://github.com/rails/rails/issues/32117
2018-02-27 15:22:38 +01:00

21 lines
312 B
Ruby

# frozen_string_literal: true
require "rake"
# Load Rails Rakefile extensions
%w(
annotations
dev
framework
initializers
log
middleware
misc
restart
tmp
yarn
).tap { |arr|
arr << "statistics" if Rake.application.current_scope.empty?
}.each do |task|
load "rails/tasks/#{task}.rake"
end