1
0
Fork 0
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:
Abhay Nikam 2019-07-23 23:33:32 +05:30
parent d3327ca40e
commit 9a47db70c9

View file

@ -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 }