File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -950,7 +950,7 @@ recognize the bi-directional association. This can cause your application to:
950
950
``` irb
951
951
irb> author = Author.first
952
952
irb> author.books.any? do |book|
953
- irb> book.author .equal?(author) # This executes an author query for every book
953
+ irb> book.writer .equal?(author) # This executes an author query for every book
954
954
irb> end
955
955
=> false
956
956
```
@@ -960,10 +960,10 @@ recognize the bi-directional association. This can cause your application to:
960
960
```irb
961
961
irb> author = Author.first
962
962
irb> book = author.books.first
963
- irb> author.name == book.author .name
963
+ irb> author.name == book.writer .name
964
964
=> true
965
965
irb> author.name = "Changed Name"
966
- irb> author.name == book.author .name
966
+ irb> author.name == book.writer .name
967
967
=> false
968
968
```
969
969
You can’t perform that action at this time.
0 commit comments