aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations.rb
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-03-07 23:56:16 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-03-07 23:56:16 +0530
commitf99db5a6a8295b463325accaefe53ab6c89c9982 (patch)
tree250ed8bbe6ba072014bf894d29fb11476e8c4bf3 /activemodel/lib/active_model/validations.rb
parent55d2a211d374b7e8102a72bcd1313ef4b097ba73 (diff)
downloadrails-f99db5a6a8295b463325accaefe53ab6c89c9982.tar.gz
rails-f99db5a6a8295b463325accaefe53ab6c89c9982.tar.bz2
rails-f99db5a6a8295b463325accaefe53ab6c89c9982.zip
formatting changes
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r--activemodel/lib/active_model/validations.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index 98af88b5a0..d968609e67 100644
--- a/activemodel/lib/active_model/validations.rb
+++ b/activemodel/lib/active_model/validations.rb
@@ -36,8 +36,8 @@ module ActiveModel
# person.invalid? # => true
# person.errors # => #<OrderedHash {:first_name=>["starts with z."]}>
#
- # Note that ActiveModel::Validations automatically adds an +errors+ method
- # to your instances initialized with a new ActiveModel::Errors object, so
+ # Note that <tt>ActiveModel::Validations</tt> automatically adds an +errors+ method
+ # to your instances initialized with a new <tt>ActiveModel::Errors</tt> object, so
# there is no need for you to do this manually.
#
module Validations
@@ -165,7 +165,7 @@ module ActiveModel
end
end
- # Returns the Errors object that holds all information about attribute error messages.
+ # Returns the +Errors+ object that holds all information about attribute error messages.
def errors
@errors ||= Errors.new(self)
end