aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorPaco Guzman <fjguzman@aspgems.com>2010-08-12 17:09:58 +0200
committerPaco Guzman <fjguzman@aspgems.com>2010-08-12 17:09:58 +0200
commit8a2b69b7273379f3c9f68ff7903b653801951ac3 (patch)
treed040890da223ef4317981377e83143b7a6934992 /activemodel
parent599c50583784537eec454f5e91dac89f88e54da3 (diff)
downloadrails-8a2b69b7273379f3c9f68ff7903b653801951ac3.tar.gz
rails-8a2b69b7273379f3c9f68ff7903b653801951ac3.tar.bz2
rails-8a2b69b7273379f3c9f68ff7903b653801951ac3.zip
applied guidelines to "# =>"
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/README.rdoc14
1 files changed, 7 insertions, 7 deletions
diff --git a/activemodel/README.rdoc b/activemodel/README.rdoc
index 89cacbcab4..73c58a87db 100644
--- a/activemodel/README.rdoc
+++ b/activemodel/README.rdoc
@@ -107,8 +107,8 @@ modules:
extend ActiveModel::Naming
end
- NamedPerson.model_name #=> "NamedPerson"
- NamedPerson.model_name.human #=> "Named person"
+ NamedPerson.model_name # => "NamedPerson"
+ NamedPerson.model_name.human # => "Named person"
{Learn more}[link:classes/ActiveModel/Naming.html]
@@ -139,7 +139,7 @@ modules:
end
Person.human_attribute_name('my_attribute')
- #=> "My attribute"
+ # => "My attribute"
{Learn more}[link:classes/ActiveModel/Translation.html]
@@ -157,7 +157,7 @@ modules:
person = Person.new
person.first_name = 'zoolander'
- person.valid? #=> false
+ person.valid? # => false
{Learn more}[link:classes/ActiveModel/Validations.html]
@@ -176,9 +176,9 @@ modules:
end
p = ValidatorPerson.new
- p.valid? #=> false
- p.errors.full_messages #=> ["Name must exist"]
+ p.valid? # => false
+ p.errors.full_messages # => ["Name must exist"]
p.name = "Bob"
- p.valid? #=> true
+ p.valid? # => true
{Learn more}[link:classes/ActiveModel/Validator.html]