Skip to content

Comments

WA-NEW-008: Update PasswordReset error-copying for Rails 7 errors API#632

Open
kitcommerce wants to merge 1 commit intonextfrom
wa-new-008-passwordreset-errors
Open

WA-NEW-008: Update PasswordReset error-copying for Rails 7 errors API#632
kitcommerce wants to merge 1 commit intonextfrom
wa-new-008-passwordreset-errors

Conversation

@kitcommerce
Copy link

Summary

Update User::PasswordReset#complete to iterate errors using the Rails 7 ActiveModel::Error object API (error.attribute, error.message) while maintaining backward compatibility with older Rails versions that yield [attribute, message] pairs.

Closes #625

Client impact

None expected. Internal error-handling change. No public API changes.

Verify

bundle exec ruby -Icore/test core/test/models/workarea/user/password_reset_test.rb

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