Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MONGOID-5675 [Monkey Patch Removal] Remove Object#__mongoize_fk__ #5715

Merged
merged 7 commits into from
Nov 8, 2023

Conversation

johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Sep 4, 2023

Fixes MONGOID-5675

Object#__mongoize_fk__ is a kernel monkey patch used only in the Mongoid::Fields::ForeignKey#mongoize method.

This PR moves it to a private method in Mongoid::Fields::ForeignKey, and incorporates its tests into the tests for the public method Mongoid::Fields::ForeignKey#mongoize.

Overall progress is tracked here: http://tinyurl.com/mongoid-monkey. Refer to MONGOID-5660 for context.

@johnnyshields johnnyshields changed the title [Monkey Patch Removal] Remove Object#__mongoize_fk__ MONGOID-5676 [Monkey Patch Removal] Remove Object#__mongoize_fk__ Sep 4, 2023
@johnnyshields johnnyshields changed the title MONGOID-5676 [Monkey Patch Removal] Remove Object#__mongoize_fk__ MONGOID-5675 [Monkey Patch Removal] Remove Object#__mongoize_fk__ Sep 4, 2023
@jamis jamis merged commit ca3c6a5 into mongodb:master Nov 8, 2023
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants