aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-10-21 15:40:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-11-18 10:51:11 -0800
commitecbae9947830bb3ec42db097140bf1b2154dee31 (patch)
treef6bc5e97449ee5385ddde9ef010df89a4555b6ea /actionpack/lib/action_dispatch
parent636405d2a6187cf1fe90f35b5e2945758afde160 (diff)
downloadrails-ecbae9947830bb3ec42db097140bf1b2154dee31.tar.gz
rails-ecbae9947830bb3ec42db097140bf1b2154dee31.tar.bz2
rails-ecbae9947830bb3ec42db097140bf1b2154dee31.zip
no need for type checking
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/mapper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb
index 4fc0d78267..f2a2e92011 100644
--- a/actionpack/lib/action_dispatch/routing/mapper.rb
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1350,7 +1350,7 @@ module ActionDispatch
end
def scope_action_options? #:nodoc:
- @scope[:options].is_a?(Hash) && (@scope[:options][:only] || @scope[:options][:except])
+ @scope[:options] && (@scope[:options][:only] || @scope[:options][:except])
end
def scope_action_options #:nodoc: