aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorLucas Brandt <lucas.brandt18@gmail.com>2018-09-14 11:46:25 -0500
committerRyuta Kamizono <kamipo@gmail.com>2018-09-15 01:46:25 +0900
commit9cafaadc0cce68143bb7390f9b147ed23da38737 (patch)
treef9a1fa7a08ac0a3ef565c2c744e1fbde9eabe9b1 /activerecord
parent717fbf6923dfd2c426422d82a4f372e33c1ea64f (diff)
downloadrails-9cafaadc0cce68143bb7390f9b147ed23da38737.tar.gz
rails-9cafaadc0cce68143bb7390f9b147ed23da38737.tar.bz2
rails-9cafaadc0cce68143bb7390f9b147ed23da38737.zip
Update associations.rb API documentation [ci skip] (#33857)
* Update association_basics.md [ci skip] Addresses issue #33599 * Update associations.rb API documentation [ci skip] Additional detail for documentation of `belongs_to` `association=(associate)` * Update association_basics.md [ci skip] Reverts misplaced documentation comment
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 1ee52945ea..70b2ca7d7e 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1524,6 +1524,7 @@ module ActiveRecord
# Returns the associated object. +nil+ is returned if none is found.
# [association=(associate)]
# Assigns the associate object, extracts the primary key, and sets it as the foreign key.
+ # No modification or deletion of existing records takes place.
# [build_association(attributes = {})]
# Returns a new object of the associated type that has been instantiated
# with +attributes+ and linked to this object through a foreign key, but has not yet been saved.