diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-01 17:43:45 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-03-01 17:43:45 -0800 |
commit | f345e2380cac2560f3bbd80defe1ef485e0d564e (patch) | |
tree | cfc7fc6d769a3948113e7ffadd0b3d9ccf891ff5 /actionpack | |
parent | 7b6bfe84f332a3c99656f73cf0251bce0a16ba88 (diff) | |
download | rails-f345e2380cac2560f3bbd80defe1ef485e0d564e.tar.gz rails-f345e2380cac2560f3bbd80defe1ef485e0d564e.tar.bz2 rails-f345e2380cac2560f3bbd80defe1ef485e0d564e.zip |
yo dawg, directly use the class cache rather than the cache of the cache
Diffstat (limited to 'actionpack')
-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 |