Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add negative
where
examples for normalizes
In #49105, `where` examples were added to the `normalizes` documentation to demonstrate that normalizations are also applied for `where`. However, as with the `exists?` examples, we should also demonstrate that normalizations are only applied to keyword arguments, not positional arguments. We can also address the original source of the confusion by changing the wording of "finder methods" to "query methods". This commit also removes the tests added in #49105. `normalizes` works at the level of attribute types, so there is no need to test every query method. Testing `find_by` is sufficient. (And, in point of fact, `find_by` is implemented in terms of `where`.)
- Loading branch information
1 parent
b1ac22f
commit 843283b
Showing
4 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters