aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorankit1910 <ankit.bansal@vinsol.com>2016-01-14 19:29:59 +0530
committerankit1910 <ankit.bansal@vinsol.com>2016-01-14 19:29:59 +0530
commitaeced89ca5c3972fb89f8279530847cfb6959f50 (patch)
treefc2007a951ad2feb451ed69772bc32d85a581776 /activerecord/lib/active_record/associations.rb
parent24ad8c058cae81874569da679df4d074694578c2 (diff)
downloadrails-aeced89ca5c3972fb89f8279530847cfb6959f50.tar.gz
rails-aeced89ca5c3972fb89f8279530847cfb6959f50.tar.bz2
rails-aeced89ca5c3972fb89f8279530847cfb6959f50.zip
update doc for << method of has_many association
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-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>,