aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks/middleware.rake
blob: 05f159184e25ff163c33a47dc04f078de4d26c22 (plain) (blame)
1
2
3
4
5
6
7
desc 'Prints out your Rack middleware stack'
task :middleware => :environment do
  ActionController::Dispatcher.middleware.active.each do |middleware|
    puts "use #{middleware.inspect}"
  end
  puts "run ActionController::Dispatcher.new"
end