aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-01-14 13:40:32 -0500
committerJon Moss <maclover7@users.noreply.github.com>2016-01-14 13:40:32 -0500
commita461dbd637791d3bd399007f234a1ca5c919e199 (patch)
treef95594722f4c0912a066c8aab5db826b14e87fa1 /activerecord
parent7a756b90214e37a19eacf6b7db3fe0ce8de5181c (diff)
parentaeced89ca5c3972fb89f8279530847cfb6959f50 (diff)
downloadrails-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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb1
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>,