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

Fix for rails 6.2/7: ActiveModel::Errors#keys deprecated #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

w1ll14m
Copy link

@w1ll14m w1ll14m commented Apr 11, 2023

Fix casein for rails 6.2/7: ActiveModel::Errors#keys deprecated

ActiveModel::Errors#keys is removed in rails >= 6.2and causes an error.

This PR Changed admin_user_session.errors.keys.each to admin_user_session.errors.attribute_names.each.

For details see activeadmin/activeadmin#7175

@w1ll14m w1ll14m changed the title Fix for rails7: ActiveModel::Errors#keys deprecated Fix for rails 6.2/7: ActiveModel::Errors#keys deprecated Apr 11, 2023
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