Permalink
Browse files

Cleanup middleware introspection output

  • Loading branch information...
1 parent 565b4cd commit a5d06d05fbdc0b66d8ba64a7982288a54b31865b @josh josh committed Jan 20, 2010
@@ -60,9 +60,7 @@ def ==(middleware)
end
def inspect
- str = klass.to_s
- args.each { |arg| str += ", #{build_args.inspect}" }
- str
+ klass.to_s
end
def build(app)
@@ -114,7 +114,7 @@ def git_info
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.
@@ -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

0 comments on commit a5d06d0

Please sign in to comment.