Skip to content

Commit

Permalink
Fix hash modification during iteration in Mapper [#5420]
Browse files Browse the repository at this point in the history
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
  • Loading branch information
nicksieger authored and spastorino committed Aug 20, 2010
1 parent 47f6d8b commit b4a5208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -774,7 +774,7 @@ def apply_common_behavior_for(method, resources, options, &block)
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

Expand Down

0 comments on commit b4a5208

Please sign in to comment.