debian-mirror-gitlab/debian/gems-compat/railties-5.1.7/lib/rails/tasks/middleware.rake
2019-08-02 22:44:51 +05:30

7 lines
231 B
Ruby

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