Remove deprecation warning for ActiveModel::Errors#keys
requested to merge mo-remove-deprecation-warning-activemodel-errors-keys-is-deprecated-and-will-be-removed-in into master
Ref: #339739 (closed)
What does this MR do and why?
This MR removes deprecation warning for ActiveModel::Errors#keys
required for rails 7.
Screenshots or screen recordings
pages_domain.errors.keys
DEPRECATION WARNING: ActiveModel::Errors#keys is deprecated and will be removed in Rails 6.2.
To achieve the same use:
errors.attribute_names (called from block (5 levels) in <top (required)> at (pry):1)
=> [:certificate, :key]
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Max Orefice