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:
parent
565b4cd3e0
commit
a5d06d05fb
3 changed files with 3 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue