aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/middleware.rake
blob: 3a7f86fdcb9d07430104ee5c887aa9cff899cfb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

desc "Prints out your Rack middleware stack"
task middleware: :environment do
  Rails.configuration.middleware.each do |middleware|
    puts "use #{middleware.inspect}"
  end
  puts "run #{Rails.application.class.name}.routes"
end