diff options
author | Arthur Neves <arthurnn@gmail.com> | 2013-09-25 14:24:27 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2013-09-25 14:24:27 -0400 |
commit | 3af4ae82e587b12664626e7b22bc6cc21ebbca2e (patch) | |
tree | f7e4203c27956fc9cd3917ea78cad9412504a59b /activerecord/lib | |
parent | f3982858359008ec8fe43b8fa2c75aad8788cd89 (diff) | |
download | rails-3af4ae82e587b12664626e7b22bc6cc21ebbca2e.tar.gz rails-3af4ae82e587b12664626e7b22bc6cc21ebbca2e.tar.bz2 rails-3af4ae82e587b12664626e7b22bc6cc21ebbca2e.zip |
Make sure inverse_of is visible on the has_many callbacks
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_association.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_association.rb b/activerecord/lib/active_record/associations/has_many_association.rb index a3fcca8a27..0a23109b9b 100644 --- a/activerecord/lib/active_record/associations/has_many_association.rb +++ b/activerecord/lib/active_record/associations/has_many_association.rb @@ -32,6 +32,7 @@ module ActiveRecord def insert_record(record, validate = true, raise = false) set_owner_attributes(record) + set_inverse_instance(record) if raise record.save!(:validate => validate) |