From 87bd8c803b530fedde3d440f991da2726541990c Mon Sep 17 00:00:00 2001 From: Mikel Lindsaar Date: Sun, 17 Jan 2010 15:41:41 +1100 Subject: Update errors docs --- activemodel/lib/active_model/errors.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'activemodel/lib/active_model/errors.rb') 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. # -- cgit v1.2.3