From 7bc25f003502633eadc26b5cbafebb66f578c058 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 21 May 2014 11:55:15 -0700 Subject: do not mutate parameters, let the caller do mutations --- actionpack/lib/action_dispatch/journey/route.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'actionpack/lib/action_dispatch/journey/route.rb') diff --git a/actionpack/lib/action_dispatch/journey/route.rb b/actionpack/lib/action_dispatch/journey/route.rb index 982ff3e259..1effcd5a5e 100644 --- a/actionpack/lib/action_dispatch/journey/route.rb +++ b/actionpack/lib/action_dispatch/journey/route.rb @@ -73,10 +73,6 @@ module ActionDispatch alias :segment_keys :parts def format(path_options) - path_options.delete_if do |key, value| - value.to_s == defaults[key].to_s && !required_parts.include?(key) - end - @formatter.evaluate path_options end -- cgit v1.2.3