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:
parent
4f56a1df54
commit
6ad28a795b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue