aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-01-17 15:41:41 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2010-01-17 15:41:41 +1100
commit87bd8c803b530fedde3d440f991da2726541990c (patch)
tree843e38d405b451af5373d6ab19c4eab5629a9727 /activemodel
parentcf55e4e3821f8a57663351c87f596e8161bcb71d (diff)
downloadrails-87bd8c803b530fedde3d440f991da2726541990c.tar.gz
rails-87bd8c803b530fedde3d440f991da2726541990c.tar.bz2
rails-87bd8c803b530fedde3d440f991da2726541990c.zip
Update errors docs
Diffstat (limited to 'activemodel')
-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.
#