Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 655396cc100943c2b1afb6f172bc96b9e29c4aad 1 parent 31c79e2
@arthurnn arthurnn authored
View
1  activerecord/lib/active_record/associations/collection_association.rb
@@ -350,6 +350,7 @@ def add_to_target(record)
end
callback(:after_add, record)
+ set_inverse_instance(record)
record
end
Please sign in to comment.
Something went wrong with that request. Please try again.