Skip to content

Conversation

@RaymondFFT
Copy link

Active Record 7.1.0.beta1 added a lambda to the presence validation added by a belongs_to association. This lambda is only an optimisation to not check presence if the column is unchanged, however it stops RailsAdmin from treating the column as required.

As of Active Record 7.1.0.beta1, the presence validation added by a
belongs_to association can now have an associated lambda. This lambda is
just to check whether the column has changed to save redundant
validations, so we can ignore it.
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.

1 participant