diff options
author | Mikhail Dieterle <MikDiet@gmail.com> | 2016-02-14 19:17:03 +0300 |
---|---|---|
committer | Mikhail Dieterle <MikDiet@gmail.com> | 2016-02-14 19:17:03 +0300 |
commit | c0bbfdb48e897a166c0c59337c6c493a61b3a21f (patch) | |
tree | 194828d2aece8b2e3b94d4e5b97b4c136fd4d572 | |
parent | f847f342f4958fe5c81fec37d9f661164ca771d8 (diff) | |
download | rails-c0bbfdb48e897a166c0c59337c6c493a61b3a21f.tar.gz rails-c0bbfdb48e897a166c0c59337c6c493a61b3a21f.tar.bz2 rails-c0bbfdb48e897a166c0c59337c6c493a61b3a21f.zip |
[ci skip] fix typos
-rw-r--r-- | guides/source/association_basics.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 3386791cdb..e692ae95bc 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -713,7 +713,7 @@ By default, Active Record doesn't know about the connection between these associ ```ruby a = Author.first -b = c.books.first +b = a.books.first a.first_name == b.author.first_name # => true a.first_name = 'Manny' a.first_name == b.author.first_name # => false @@ -734,8 +734,8 @@ end With these changes, Active Record will only load one copy of the author object, preventing inconsistencies and making your application more efficient: ```ruby -a = author.first -b = c.books.first +a = Author.first +b = a.books.first a.first_name == b.author.first_name # => true a.first_name = 'Manny' a.first_name == b.author.first_name # => true |