diff options
author | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-07-23 23:33:32 +0530 |
---|---|---|
committer | Abhay Nikam <nikam.abhay1@gmail.com> | 2019-07-23 23:33:32 +0530 |
commit | 9a47db70c90ee879a5d85e7328b1a02626a87ee2 (patch) | |
tree | 3a3da1c8c2bff3a6636802a8858f0842266ee431 /activemodel/lib/active_model | |
parent | d3327ca40eaea734b2302c7a9ffa0360033a7484 (diff) | |
download | rails-9a47db70c90ee879a5d85e7328b1a02626a87ee2.tar.gz rails-9a47db70c90ee879a5d85e7328b1a02626a87ee2.tar.bz2 rails-9a47db70c90ee879a5d85e7328b1a02626a87ee2.zip |
Fixed the typo in the deprecation error messages. Followup #36738
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index 480f24183a..42c004ce31 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -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 } |