aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activemodel/lib/active_model/errors.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index a51aa9698d..6ea85a288c 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -9,6 +9,9 @@ module ActiveModel
#
# class Person
#
+ # # Required dependency for ActiveModel::Errors
+ # extend ActiveModel::Naming
+ #
# def initialize
# @errors = ActiveModel::Errors.new(self)
# end
@@ -34,13 +37,9 @@ module ActiveModel
# [self]
# end
#
- # def ErrorsPerson.model_name
- # ActiveModel::Name.new(ErrorsPerson)
- # end
- #
# end
#
- # The last four methods are required in your object for Errors to be
+ # The last three methods are required in your object for Errors to be
# able to generate error messages correctly and also handle multiple
# languages.
#