mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed the typo in the deprecation error messages. Followup #36738
This commit is contained in:
parent
d3327ca40e
commit
9a47db70c9
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ module ActiveModel
|
|||
ActiveSupport::Deprecation.warn(<<~EOM)
|
||||
ActiveModel::Errors#to_h is deprecated and will be removed in Rails 6.2
|
||||
Please use `ActiveModel::Errors.to_hash` instead. The values in the hash
|
||||
returned by `ActiveModel::Erors.to_hash` is an array of error messages.
|
||||
returned by `ActiveModel::Errors.to_hash` is an array of error messages.
|
||||
EOM
|
||||
|
||||
to_hash.transform_values { |values| values.last }
|
||||
|
|
Loading…
Reference in a new issue