diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-20 01:07:33 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2010-12-20 01:07:33 +0530 |
commit | 4038a6bc0f9006fac32943040733c734cc8afe14 (patch) | |
tree | 0a88c50e209a4bb241387b87084d46687d48d1ae /activemodel | |
parent | 4197fad8413e4b599c1c7f2382f4dcaeccf9473d (diff) | |
download | rails-4038a6bc0f9006fac32943040733c734cc8afe14.tar.gz rails-4038a6bc0f9006fac32943040733c734cc8afe14.tar.bz2 rails-4038a6bc0f9006fac32943040733c734cc8afe14.zip |
minor fixesin READMEs
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/README.rdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc index 9b96bfaba7..f3d4bf8fe3 100644 --- a/activemodel/README.rdoc +++ b/activemodel/README.rdoc @@ -84,7 +84,7 @@ modules: attr_reader :errors def validate! - errors.add(:name, "can not be nil") if name == nil + errors.add(:name, "can not be nil") if name.nil? end def ErrorsPerson.human_attribute_name(attr, options = {}) @@ -94,10 +94,10 @@ modules: end person.errors.full_messages - # => ["Name Can not be nil"] + # => ["Name can not be nil"] person.errors.full_messages - # => ["Name Can not be nil"] + # => ["Name can not be nil"] {Learn more}[link:classes/ActiveModel/Errors.html] |