This rails PR (https://github.com/rails/rails/pull/53640) breaks our internal use of ClassAttribute.redefine by adding a new parameter. I've added a comment to that PR asking if it could be made backward compatible (since the redefine method is not strictly an internal API). In the worst case, we'll need to figure out a way to work around it before the next Rails patch release.