aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-01-19 08:11:31 +0900
committerGitHub <noreply@github.com>2018-01-19 08:11:31 +0900
commit6d1dd1643dc8a2dece837af331a4c5d26ac04f30 (patch)
tree6aca4be8acbcd1b79b17db364978568dc7d1e3ec /guides
parent9270e69c5856c954ab0366414bd097e739483324 (diff)
parent1ac67a5ed60040755c96b0bc8a4ec7f44d581765 (diff)
downloadrails-6d1dd1643dc8a2dece837af331a4c5d26ac04f30.tar.gz
rails-6d1dd1643dc8a2dece837af331a4c5d26ac04f30.tar.bz2
rails-6d1dd1643dc8a2dece837af331a4c5d26ac04f30.zip
Merge pull request #31738 from tcopeland/doc_typo
Fix minor typo [ci skip]
Diffstat (limited to 'guides')
-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, ...)`