Permalink
Browse files

Merge pull request #8694 from goshakkk/undup

Remove unnecessary #dup
  • Loading branch information...
carlosantoniodasilva committed Jan 2, 2013
2 parents 6e475a0 + aca0c6d commit bdaafae550051cddc8db88f464717840d2248111
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/journey/formatter.rb
@@ -37,8 +37,7 @@ def clear
private
def extract_parameterized_parts(route, options, recall, parameterize = nil)
- constraints = recall.merge(options)
- data = constraints.dup
+ data = recall.merge(options)
keys_to_keep = route.parts.reverse.drop_while { |part|
!options.key?(part) || (options[part] || recall[part]).nil?

0 comments on commit bdaafae

Please sign in to comment.