From c6fcf0d3643f7a25322d69b0a3b7b87ba9a5a65d Mon Sep 17 00:00:00 2001 From: Oleg Ermakov Date: Mon, 15 Nov 2021 20:53:00 +0300 Subject: [PATCH] docs: true/false typo Scope `Book.in_print` should return `books.out_of_print = false` --- guides/source/active_record_querying.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index ec62bd04d1..9636a8ca1b 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -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)