From 22f5c6d86399e7a40e7232a14718d5eb23177081 Mon Sep 17 00:00:00 2001 From: Neeraj Singh Date: Tue, 27 Apr 2010 15:12:19 -0400 Subject: [PATCH] documentation fix for ActiveModle [#4489 state:resolved] --- activemodel/README | 2 +- activemodel/lib/active_model/errors.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activemodel/README b/activemodel/README index 3945a6d..6b0806a 100644 --- a/activemodel/README +++ b/activemodel/README @@ -96,7 +96,7 @@ functionality from the following modules: errors.add(:name, "can not be nil") if name == nil end - def ErrorsPerson.human_attribute_name(attr, options = {}) + def self.human_attribute_name(attr, options = {}) "Name" end diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb index e6c86c7..17c4373 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -33,11 +33,11 @@ module ActiveModel # send(attr) # end # - # def ErrorsPerson.human_attribute_name(attr, options = {}) + # def self.human_attribute_name(attr, options = {}) # attr # end # - # def ErrorsPerson.lookup_ancestors + # def self.lookup_ancestors # [self] # end # -- 1.6.5.2