mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix hash modification during iteration in Mapper [#5420]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
committed by
Santiago Pastorino
parent
7c9bf45b0d
commit
2277c51555
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user