Skip to content

Commit c6fcf0d

Browse files
author
Oleg Ermakov
authored
docs: true/false typo
Scope `Book.in_print` should return `books.out_of_print = false`
1 parent 5292486 commit c6fcf0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_querying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ irb> Book.all
17281728
SELECT books.* FROM books WHERE (year_published >= 1969)
17291729
17301730
irb> Book.in_print
1731-
SELECT books.* FROM books WHERE (year_published >= 1969) AND books.out_of_print = true
1731+
SELECT books.* FROM books WHERE (year_published >= 1969) AND books.out_of_print = false
17321732
17331733
irb> Book.where('price > 50')
17341734
SELECT books.* FROM books WHERE (year_published >= 1969) AND (price > 50)

0 commit comments

Comments
 (0)