Skip to content

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

Open
w1ll14m wants to merge 2 commits into
russellquinn:masterfrom
w1ll14m:master
Open

Fix for rails 6.2/7: ActiveModel::Errors#keys deprecated#108
w1ll14m wants to merge 2 commits into
russellquinn:masterfrom
w1ll14m:master

Conversation

@w1ll14m

@w1ll14m w1ll14m commented Apr 11, 2023

Copy link
Copy Markdown

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