You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Rails 7.1 added normalizes that can replace before_validation callbacks that change an attribute
It would be nice if we can have a cop to help people upgrade their codebases
The text was updated successfully, but these errors were encountered:
Can you provide some examples you have in mind? In a codebase I worked on we had plenty of before_validations that just initialized some field, without a specific guard like on: :create.
Not the greatest pattern. Basically some immutable model once created which means before_validations run only once while with normalizes that would also run for queries against it
Is your feature request related to a problem? Please describe.
Rails 7.1 added normalizes that can replace before_validation callbacks that change an attribute
It would be nice if we can have a cop to help people upgrade their codebases
The text was updated successfully, but these errors were encountered: