aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/tasks/middleware.rake
blob: e0dcf503076526f44f676e5e81d705065d4dcd91 (plain) (tree)
1
2
3
4
5
6
7






                                                              
desc 'Prints out your Rack middleware stack'
task :middleware => :environment do
  ActionController::Dispatcher.middleware.each do |middleware|
    puts "use #{middleware.inspect}"
  end
  puts "run ActionController::Dispatcher.new"
end