mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
Add back set_inverse_instance on .add_to_target
We must have it in there too, so when an existent record is being concat to another, we will have the inverse relation.
This commit is contained in:
@@ -350,6 +350,7 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
callback(:after_add, record)
|
||||
set_inverse_instance(record)
|
||||
|
||||
record
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user