diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-01-14 13:40:32 -0500 |
---|---|---|
committer | Jon Moss <maclover7@users.noreply.github.com> | 2016-01-14 13:40:32 -0500 |
commit | a461dbd637791d3bd399007f234a1ca5c919e199 (patch) | |
tree | f95594722f4c0912a066c8aab5db826b14e87fa1 | |
parent | 7a756b90214e37a19eacf6b7db3fe0ce8de5181c (diff) | |
parent | aeced89ca5c3972fb89f8279530847cfb6959f50 (diff) | |
download | rails-a461dbd637791d3bd399007f234a1ca5c919e199.tar.gz rails-a461dbd637791d3bd399007f234a1ca5c919e199.tar.bz2 rails-a461dbd637791d3bd399007f234a1ca5c919e199.zip |
Merge pull request #23054 from ankit1910/update-doc
update doc for << method of has_many association
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 462b3066ab..f6d8e8a342 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1164,6 +1164,7 @@ module ActiveRecord # Adds one or more objects to the collection by setting their foreign keys to the collection's primary key. # Note that this operation instantly fires update SQL without waiting for the save or update call on the # parent object, unless the parent object is a new record. + # This will also run validations and callbacks of associated object(s). # [collection.delete(object, ...)] # Removes one or more objects from the collection by setting their foreign keys to +NULL+. # Objects will be in addition destroyed if they're associated with <tt>dependent: :destroy</tt>, |