no need for type checking

This commit is contained in:
Aaron Patterson
2011-10-21 15:40:10 -07:00
parent 636405d2a6
commit ecbae99478

View File

@@ -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: