Permalink
Browse files

remove unnecessary #dup

  • Loading branch information...
1 parent f83b6ed commit aca0c6d315258fe83bea81ce4d5e606ac18856ec @goshakkk goshakkk committed Jan 2, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 actionpack/lib/action_dispatch/journey/formatter.rb
View
3 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 aca0c6d

Please sign in to comment.