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:
Arthur Neves
2013-10-04 10:15:19 -04:00
parent 31c79e291f
commit 655396cc10

View File

@@ -350,6 +350,7 @@ module ActiveRecord
end
callback(:after_add, record)
set_inverse_instance(record)
record
end