Fix hash modification during iteration in Mapper [#5420]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
Nick Sieger
2010-08-20 15:58:23 -05:00
committed by Santiago Pastorino
parent 7c9bf45b0d
commit 2277c51555

View File

@@ -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