1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Cleanup middleware introspection output

This commit is contained in:
Joshua Peek 2010-01-19 22:25:10 -06:00
parent 565b4cd3e0
commit a5d06d05fb
3 changed files with 3 additions and 5 deletions

View file

@ -60,9 +60,7 @@ module ActionDispatch
end
def inspect
str = klass.to_s
args.each { |arg| str += ", #{build_args.inspect}" }
str
klass.to_s
end
def build(app)

View file

@ -114,7 +114,7 @@ module Rails
end
property 'Middleware' do
Rails.configuration.middleware.active.map { |middle| middle.inspect }
Rails.configuration.middleware.active.map(&:inspect)
end
# The Rails Git revision, if it's checked out into vendor/rails.

View file

@ -3,5 +3,5 @@ task :middleware => :environment do
Rails.configuration.middleware.active.each do |middleware|
puts "use #{middleware.inspect}"
end
puts "run ActionController::Routing::Routes"
puts "run #{Rails.application.class.name}"
end