aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
diff options
context:
space:
mode:
authorTom Copeland <tom@thomasleecopeland.com>2018-01-18 17:21:09 -0500
committerTom Copeland <tom@motorefi.com>2018-01-18 18:05:50 -0500
commit1ac67a5ed60040755c96b0bc8a4ec7f44d581765 (patch)
treef43b8cc9f3ff58093963975c40137387603572f8 /guides/source/association_basics.md
parente1473e0cbfbd97eeea2bc6eefd73bec0d4863359 (diff)
downloadrails-1ac67a5ed60040755c96b0bc8a4ec7f44d581765.tar.gz
rails-1ac67a5ed60040755c96b0bc8a4ec7f44d581765.tar.bz2
rails-1ac67a5ed60040755c96b0bc8a4ec7f44d581765.zip
Fix minor typo [ci skip]
Updated the method counts and unified them all on numerals.
Diffstat (limited to 'guides/source/association_basics.md')
-rw-r--r--guides/source/association_basics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 02d012d702..52c30f226f 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -795,7 +795,7 @@ The `belongs_to` association creates a one-to-one match with another model. In d
#### Methods Added by `belongs_to`
-When you declare a `belongs_to` association, the declaring class automatically gains five methods related to the association:
+When you declare a `belongs_to` association, the declaring class automatically gains 6 methods related to the association:
* `association`
* `association=(associate)`
@@ -1146,7 +1146,7 @@ The `has_one` association creates a one-to-one match with another model. In data
#### Methods Added by `has_one`
-When you declare a `has_one` association, the declaring class automatically gains five methods related to the association:
+When you declare a `has_one` association, the declaring class automatically gains 6 methods related to the association:
* `association`
* `association=(associate)`
@@ -1419,7 +1419,7 @@ The `has_many` association creates a one-to-many relationship with another model
#### Methods Added by `has_many`
-When you declare a `has_many` association, the declaring class automatically gains 16 methods related to the association:
+When you declare a `has_many` association, the declaring class automatically gains 17 methods related to the association:
* `collection`
* `collection<<(object, ...)`
@@ -1952,7 +1952,7 @@ The `has_and_belongs_to_many` association creates a many-to-many relationship wi
#### Methods Added by `has_and_belongs_to_many`
-When you declare a `has_and_belongs_to_many` association, the declaring class automatically gains 16 methods related to the association:
+When you declare a `has_and_belongs_to_many` association, the declaring class automatically gains 17 methods related to the association:
* `collection`
* `collection<<(object, ...)`