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-5662 [Monkey Patch Removal] Remove Object#__to_inc__ #5709

Closed

Conversation

johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Sep 3, 2023

Fixes MONGOID-5662

Object#__to_inc__ is a kernel monkey patch used only in the #inc and #mul atomic methods.

This PR removes the monkey patch and inlines its code to the two places it is used. The logic is covered by existing specs, so no new specs needed.

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

…the code in the two places it was used. The logic is covered by existing specs, so no new specs needed.
@johnnyshields johnnyshields changed the title Remove Object#__to_inc__ kernel monkey patch MONGOID-5662 - [Monkey Patch Removal] Remove Object#__to_inc__ Sep 3, 2023
@johnnyshields johnnyshields changed the title MONGOID-5662 - [Monkey Patch Removal] Remove Object#__to_inc__ MONGOID-5662 [Monkey Patch Removal] Remove Object#__to_inc__ Sep 3, 2023
@jamis
Copy link
Contributor

jamis commented Nov 6, 2023

Closing this in favor of #5741 so that we deprecate the monkey-patched methods, instead of removing them. Thanks for your work on this!

@jamis jamis closed this Nov 6, 2023
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