diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-03 09:24:32 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-03 09:24:32 -0500 |
commit | e0660192806fc1ec8b75654e69211f85c9f1256b (patch) | |
tree | 3493916400eee87a5534014d54001593a0446fae /actionpack | |
parent | 11af089cee0a0e744e267d32becfe2c66a586d31 (diff) | |
download | rails-e0660192806fc1ec8b75654e69211f85c9f1256b.tar.gz rails-e0660192806fc1ec8b75654e69211f85c9f1256b.tar.bz2 rails-e0660192806fc1ec8b75654e69211f85c9f1256b.zip |
Show lazy middleware args in pretty print
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/stack.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/stack.rb b/actionpack/lib/action_dispatch/middleware/stack.rb index ee5f28d5cb..ec8a9ca76e 100644 --- a/actionpack/lib/action_dispatch/middleware/stack.rb +++ b/actionpack/lib/action_dispatch/middleware/stack.rb @@ -61,7 +61,7 @@ module ActionDispatch def inspect str = klass.to_s - args.each { |arg| str += ", #{arg.inspect}" } + args.each { |arg| str += ", #{build_args.inspect}" } str end @@ -74,7 +74,6 @@ module ActionDispatch end private - def build_args Array(args).map { |arg| arg.respond_to?(:call) ? arg.call : arg } end |