mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] Fix number of methods added by association.
Also clean up some trailing spaces on line 1143-1146.
This commit is contained in:
parent
f2ca5aa5c2
commit
01d75f038e
1 changed files with 8 additions and 8 deletions
|
@ -718,7 +718,7 @@ The `belongs_to` association creates a one-to-one match with another model. In d
|
||||||
|
|
||||||
#### Methods Added by `belongs_to`
|
#### Methods Added by `belongs_to`
|
||||||
|
|
||||||
When you declare a `belongs_to` association, the declaring class automatically gains four methods related to the association:
|
When you declare a `belongs_to` association, the declaring class automatically gains five methods related to the association:
|
||||||
|
|
||||||
* `association(force_reload = false)`
|
* `association(force_reload = false)`
|
||||||
* `association=(associate)`
|
* `association=(associate)`
|
||||||
|
@ -1022,7 +1022,7 @@ The `has_one` association creates a one-to-one match with another model. In data
|
||||||
|
|
||||||
#### Methods Added by `has_one`
|
#### Methods Added by `has_one`
|
||||||
|
|
||||||
When you declare a `has_one` association, the declaring class automatically gains four methods related to the association:
|
When you declare a `has_one` association, the declaring class automatically gains five methods related to the association:
|
||||||
|
|
||||||
* `association(force_reload = false)`
|
* `association(force_reload = false)`
|
||||||
* `association=(associate)`
|
* `association=(associate)`
|
||||||
|
@ -1289,7 +1289,7 @@ The `has_many` association creates a one-to-many relationship with another model
|
||||||
|
|
||||||
#### Methods Added by `has_many`
|
#### Methods Added by `has_many`
|
||||||
|
|
||||||
When you declare a `has_many` association, the declaring class automatically gains 13 methods related to the association:
|
When you declare a `has_many` association, the declaring class automatically gains 16 methods related to the association:
|
||||||
|
|
||||||
* `collection(force_reload = false)`
|
* `collection(force_reload = false)`
|
||||||
* `collection<<(object, ...)`
|
* `collection<<(object, ...)`
|
||||||
|
@ -1778,7 +1778,7 @@ The `has_and_belongs_to_many` association creates a many-to-many relationship wi
|
||||||
|
|
||||||
#### Methods Added by `has_and_belongs_to_many`
|
#### Methods Added by `has_and_belongs_to_many`
|
||||||
|
|
||||||
When you declare a `has_and_belongs_to_many` association, the declaring class automatically gains 13 methods related to the association:
|
When you declare a `has_and_belongs_to_many` association, the declaring class automatically gains 16 methods related to the association:
|
||||||
|
|
||||||
* `collection(force_reload = false)`
|
* `collection(force_reload = false)`
|
||||||
* `collection<<(object, ...)`
|
* `collection<<(object, ...)`
|
||||||
|
|
Loading…
Reference in a new issue