You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MONGOID-4812 Allow id to be a regular field in models (not an alias of _id) (#4929)
* unalias id/_id
* remove other traces of aliasing
* keep aliased fields
* create a method to unalias an attribute
* remove whitespace
* make #only more straightforward & efficient
* extract Criteria#only tests in their own file
* verify only works correctly when id is unaliased
* note that aliases are not included
* rename the test because I will add without to it
* move #without tests to projection
* fix #without when id is unaliased
* test cases for using #without when id is unaliased
* Document #without
* Note that id cannot be omitted via without
* basic integration test
* clean up
* add docstring
* remove extra whitespace
* add tutorial documentation
* use _id instead of id everywhere in the codebase
* add an upgrading note
* fix cloning
* fix nested_one association
Co-authored-by: Emily Giurleo <[email protected]>
Co-authored-by: Oleg Pudeyev <[email protected]>
0 commit comments