diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/stack.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/stack.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/stack.rb b/actionpack/lib/action_dispatch/middleware/stack.rb index fe87abb4d0..d9bfd3d573 100644 --- a/actionpack/lib/action_dispatch/middleware/stack.rb +++ b/actionpack/lib/action_dispatch/middleware/stack.rb @@ -8,11 +8,12 @@ module ActionDispatch def initialize(klass_or_name, *args, &block) @klass = nil - @name = klass_or_name if klass_or_name.respond_to?(:name) @klass = klass_or_name @name = @klass.name + else + @name = klass_or_name.to_s end @args, @block = args, block |