diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-04 09:57:17 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-10-04 09:57:17 -0700 |
commit | 7ed5bdc834479c39e3b0ad5a38bcffe27983c10d (patch) | |
tree | 403d9824048f6f9633596a8339a16f8660608454 /activerecord/lib | |
parent | 31c79e291f42b1d862df06c552fe002864aae705 (diff) | |
parent | fc59e997d7948f010aab6d888ab919198f1a20ac (diff) | |
download | rails-7ed5bdc834479c39e3b0ad5a38bcffe27983c10d.tar.gz rails-7ed5bdc834479c39e3b0ad5a38bcffe27983c10d.tar.bz2 rails-7ed5bdc834479c39e3b0ad5a38bcffe27983c10d.zip |
Merge pull request #12443 from arthurnn/add_inverse_of_add_target
Add inverse of add target
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index c2dd462b5d..baddb9852f 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -350,6 +350,7 @@ module ActiveRecord end callback(:after_add, record) + set_inverse_instance(record) record end |