1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Do not mutate the operations array

This commit is contained in:
Rafael Mendonça França 2015-02-19 09:29:09 -02:00
parent 4f56a1df54
commit 6ad28a795b

View file

@ -65,7 +65,7 @@ module Rails
end
def merge_into(other) #:nodoc:
@operations.concat(@delete_operations).each do |operation, args, block|
(@operations + @delete_operations).each do |operation, args, block|
other.send(operation, *args, &block)
end