rom
rom copied to clipboard
Fixed Object#with conflict with ActiveSupport 7.1
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