diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-12 17:04:32 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-12 17:04:32 -0700 |
commit | 3e3e23f0484b4891a70eecd89f30b8ad81852e8b (patch) | |
tree | 6e144ceee3cf59a74b5ed324cea3e81af2a9449c | |
parent | 39556884403ab5baa89574671f1a100c42792b02 (diff) | |
download | rails-3e3e23f0484b4891a70eecd89f30b8ad81852e8b.tar.gz rails-3e3e23f0484b4891a70eecd89f30b8ad81852e8b.tar.bz2 rails-3e3e23f0484b4891a70eecd89f30b8ad81852e8b.zip |
remove unnecessary deletes
These three options are stored in the `scope` chain outside of the
options hash. If they are in the options hash, then someone passed them
in to `match` and they don't really do anything. So lets remove the
code.
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 29daf39aec..f4f34e7924 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -64,10 +64,6 @@ module ActionDispatch def self.build(scope, set, path, as, controller, default_action, to, via, formatted, options) options = scope[:options].merge(options) if scope[:options] - options.delete :shallow_path - options.delete :shallow_prefix - options.delete :shallow - defaults = (scope[:defaults] || {}).dup scope_constraints = scope[:constraints] || {} |