aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey
diff options
context:
space:
mode:
authorGosha Arinich <me@goshakkk.name>2013-01-02 18:33:52 +0300
committerGosha Arinich <me@goshakkk.name>2013-01-02 18:33:52 +0300
commitaca0c6d315258fe83bea81ce4d5e606ac18856ec (patch)
tree04d89c2b0459ca98101559d324bc678606390676 /actionpack/lib/action_dispatch/journey
parentf83b6ed983dd06f367d0b9ad60debabf0c757656 (diff)
downloadrails-aca0c6d315258fe83bea81ce4d5e606ac18856ec.tar.gz
rails-aca0c6d315258fe83bea81ce4d5e606ac18856ec.tar.bz2
rails-aca0c6d315258fe83bea81ce4d5e606ac18856ec.zip
remove unnecessary #dup
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r--actionpack/lib/action_dispatch/journey/formatter.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/formatter.rb b/actionpack/lib/action_dispatch/journey/formatter.rb
index 4a344f71af..e8d3c35d37 100644
--- a/actionpack/lib/action_dispatch/journey/formatter.rb
+++ b/actionpack/lib/action_dispatch/journey/formatter.rb
@@ -37,8 +37,7 @@ module ActionDispatch
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?