diff options
author | Nick Sieger <nick@nicksieger.com> | 2010-08-20 15:58:23 -0500 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-08-20 18:27:02 -0300 |
commit | 2277c51555249cc8b0478e175bcb744841634db5 (patch) | |
tree | 1595bc84c96aab926e23de1a685d5a14c2995664 /actionpack/lib/action_dispatch/routing | |
parent | 7c9bf45b0dd7ad7a1d99a14566bfaeadc77b4665 (diff) | |
download | rails-2277c51555249cc8b0478e175bcb744841634db5.tar.gz rails-2277c51555249cc8b0478e175bcb744841634db5.tar.bz2 rails-2277c51555249cc8b0478e175bcb744841634db5.zip |
Fix hash modification during iteration in Mapper [#5420]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 800c6b469e..00f8fb99bb 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -774,7 +774,7 @@ module ActionDispatch return true end - options.each do |k,v| + options.keys.each do |k| (options[:constraints] ||= {})[k] = options.delete(k) if options[k].is_a?(Regexp) end |