Skip to content

Commit

Permalink
docs: true/false typo
Browse files Browse the repository at this point in the history
Scope `Book.in_print` should return `books.out_of_print = false`
  • Loading branch information
Oleg Ermakov committed Nov 15, 2021
1 parent 5292486 commit c6fcf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/active_record_querying.md
Expand Up @@ -1728,7 +1728,7 @@ irb> Book.all
SELECT books.* FROM books WHERE (year_published >= 1969)
irb> Book.in_print
SELECT books.* FROM books WHERE (year_published >= 1969) AND books.out_of_print = true
SELECT books.* FROM books WHERE (year_published >= 1969) AND books.out_of_print = false
irb> Book.where('price > 50')
SELECT books.* FROM books WHERE (year_published >= 1969) AND (price > 50)
Expand Down

0 comments on commit c6fcf0d

Please sign in to comment.