Skip to content

Commit c62a361

Browse files
authored
Merge pull request rails#49078 from ilyaabramovich/patch-1
Fix generated SQL in code example using .unscoped with block [ci-skip]
2 parents eab51d8 + ef1b07b commit c62a361

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
@@ -1902,7 +1902,7 @@ SELECT books.* FROM books
19021902

19031903
```irb
19041904
irb> Book.unscoped { Book.out_of_print }
1905-
SELECT books.* FROM books WHERE books.out_of_print
1905+
SELECT books.* FROM books WHERE books.out_of_print = true
19061906
```
19071907

19081908
[`unscoped`]: https://api.rubyonrails.org/classes/ActiveRecord/Scoping/Default/ClassMethods.html#method-i-unscoped

0 commit comments

Comments
 (0)