1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Putting back italics into association headers on association_basics.textile

This commit is contained in:
Jaime Iniesta 2010-04-01 17:53:55 +02:00
parent 78ab9beb49
commit 13e3f9c0ce

View file

@ -540,7 +540,7 @@ build_customer
create_customer create_customer
</ruby> </ruby>
h6. association(force_reload = false) h6. _association_(force_reload = false)
The <tt><em>association</em></tt> method returns the associated object, if any. If no associated object is found, it returns +nil+. The <tt><em>association</em></tt> method returns the associated object, if any. If no associated object is found, it returns +nil+.
@ -550,7 +550,7 @@ The <tt><em>association</em></tt> method returns the associated object, if any.
If the associated object has already been retrieved from the database for this object, the cached version will be returned. To override this behavior (and force a database read), pass +true+ as the +force_reload+ argument. If the associated object has already been retrieved from the database for this object, the cached version will be returned. To override this behavior (and force a database read), pass +true+ as the +force_reload+ argument.
h6. association=(associate) h6. _association_=(associate)
The <tt><em>association</em>=</tt> method assigns an associated object to this object. Behind the scenes, this means extracting the primary key from the associate object and setting this object's foreign key to the same value. The <tt><em>association</em>=</tt> method assigns an associated object to this object. Behind the scenes, this means extracting the primary key from the associate object and setting this object's foreign key to the same value.