Permalink
Browse files

Simplify arg parameterization

  • Loading branch information...
1 parent d017e92 commit b9efc74f9e63e76f121204a96073d2f5582f66e6 @pixeltrix pixeltrix committed Jan 5, 2014
Showing with 1 addition and 6 deletions.
  1. +1 −6 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -202,12 +202,7 @@ def optimize_routes_generation?(t)
end
def parameterize_args(args)
- [].tap do |parameterized_args|
- @required_parts.zip(args) do |part, arg|
- parameterized_arg = arg.to_param
- parameterized_args << [part, parameterized_arg]
- end
- end
+ @required_parts.zip(args.map(&:to_param))
end
def missing_keys(args)

0 comments on commit b9efc74

Please sign in to comment.