aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authordeepj <deepjungle.maca@gmail.com>2015-08-23 15:04:14 +0200
committerdeepj <deepjungle.maca@gmail.com>2015-08-23 16:06:29 +0200
commitdbfab58457c4a2c958718b8f67491965d879c69a (patch)
treee25ec2f3e53f6f81e707277ab6331979700fffe7 /actionpack/lib/action_dispatch
parent3cbaeb16013ef488a9619dd00dd00fe49bb6994d (diff)
downloadrails-dbfab58457c4a2c958718b8f67491965d879c69a.tar.gz
rails-dbfab58457c4a2c958718b8f67491965d879c69a.tar.bz2
rails-dbfab58457c4a2c958718b8f67491965d879c69a.zip
Remove unused block arguments
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index af6f0de556..2e8c346758 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -171,9 +171,9 @@ module ActionDispatch
private
def optimized_helper(args)
- params = parameterize_args(args) { |k|
+ params = parameterize_args(args) do
raise_generation_error(args)
- }
+ end
@route.format params
end