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

Fixed Object#with conflict with ActiveSupport 7.1 #687

Closed
wants to merge 1 commit into from

Conversation

rykov
Copy link

@rykov rykov commented Oct 29, 2023

ActiveSupport 7.1 defines Object#with that interferes with ROM. This PR fixes it.

We use define_method/undef_method sequence due to uncertain load order. The method needs to be defined for undef_method to mark a method as undefined. This solution ensures the fix works whether ActiveSupport is loaded before or after ROM.

Fixes #684

@bendangelo
Copy link

Can this get merged?

@solnic solnic changed the base branch from main to release-5.3 March 15, 2024 10:34
@solnic solnic changed the base branch from release-5.3 to main March 15, 2024 10:35
@solnic
Copy link
Member

solnic commented Mar 15, 2024

This needs to be reworked on top of release-5.3 branch so that we could release it.

@flash-gordon
Copy link
Member

I'll address it today

flash-gordon added a commit that referenced this pull request Mar 15, 2024
So that it doesn't clash with the new "feature" from AS, namely, Object#with
flash-gordon added a commit that referenced this pull request Mar 15, 2024
So that it doesn't clash with the new "feature" from AS, namely, Object#with
@flash-gordon
Copy link
Member

@rykov I fixed it in rom-core 5.3.1. It seems to work for me, can you please test it out for yourself?

@rykov rykov changed the base branch from main to release-5.3 March 15, 2024 16:04
@bendangelo
Copy link

It's fixed on my end. thanks

@ricardopacheco
Copy link

ricardopacheco commented Mar 15, 2024

It's fixed for me too! thank you

@flash-gordon
Copy link
Member

thanks folks, I'll close it then

@rykov
Copy link
Author

rykov commented Mar 16, 2024

@flash-gordon It works for me as well. Thank you for the fix.

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.

Rails 7.1 incompatibility (Object#with)
5 participants