aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-07-24 17:51:34 +0900
committerGitHub <noreply@github.com>2019-07-24 17:51:34 +0900
commit53d326dc5d008859b560f975c541c65748244d32 (patch)
tree9ca08eb0a8c2f051682d73ab56c56222f5064411
parent0e149abbd5affc43f80a5c9bf8b7a7c2a5905d53 (diff)
parent9a47db70c90ee879a5d85e7328b1a02626a87ee2 (diff)
downloadrails-53d326dc5d008859b560f975c541c65748244d32.tar.gz
rails-53d326dc5d008859b560f975c541c65748244d32.tar.bz2
rails-53d326dc5d008859b560f975c541c65748244d32.zip
Merge pull request #36746 from abhaynikam/36738-followup-to-fix-typo-in-deprecation-message
Fixed the typo in the deprecation error messages. `Erors` -> `Errors`
-rw-r--r--activemodel/lib/active_model/errors.rb2
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 }