Skip to content

WA-NEW-008: Update PasswordReset error-copying for Rails 7 ActiveModel::Errors API #625

@jhill

Description

@jhill

Goal: Remove Rails 6.1 deprecation warning and ensure compatibility with Rails 7 where ActiveModel::Errors yields Error objects instead of [attr, message] pairs.

Scope: Update core/app/models/workarea/user/password_reset.rb to iterate user.errors.each do |error| and copy error.attribute/error.message.

Verify: bundle exec ruby -Icore/test core/test/models/workarea/user/password_reset_test.rb (no deprecation warning in output)
Branch pattern: wa-new-008-*
PR target: next

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions