aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/route_set.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-08-08 18:56:10 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-08-08 18:56:10 +0200
commit3a7609e2bafee4b071fe35136274e6ccbae8cacd (patch)
treea029172be8f01f2815f67f7d673a0dc8f760cd0e /actionpack/lib/action_dispatch/routing/route_set.rb
parent286cb890de8bbb01559683a3715387de2cb0af5f (diff)
parent725f9bf3e284cedf09bdd26712cfa5c7f39a08e0 (diff)
downloadrails-3a7609e2bafee4b071fe35136274e6ccbae8cacd.tar.gz
rails-3a7609e2bafee4b071fe35136274e6ccbae8cacd.tar.bz2
rails-3a7609e2bafee4b071fe35136274e6ccbae8cacd.zip
Merge pull request #21167 from AaronLasseigne/use_each_key
replace each with each_key when only the key is needed
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/route_set.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index a8fb5aade3..1742daf1de 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -271,7 +271,7 @@ module ActionDispatch
path_params -= controller_options.keys
path_params -= result.keys
end
- inner_options.each do |key, _|
+ inner_options.each_key do |key|
path_params.delete(key)
end