docs: true/false typo

Scope `Book.in_print` should return `books.out_of_print = false`
This commit is contained in:
Oleg Ermakov 2021-11-15 20:53:00 +03:00 committed by GitHub
parent 5292486aa0
commit c6fcf0d364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)