Skip to content
Browse files

minor docs improvements

  • Loading branch information...
1 parent 26353b9 commit 8c1633328699cc00b1b8a893bffa6390c2cdfcc0 @oscardelben oscardelben committed Apr 26, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 activemodel/lib/active_model/validations.rb
  2. +3 −3 activemodel/lib/active_model/validations/with.rb
View
2 activemodel/lib/active_model/validations.rb
@@ -158,7 +158,7 @@ def validators
_validators.values.flatten.uniq
end
- # List all validators that being used to validate a specific attribute.
+ # List all validators that are being used to validate a specific attribute.
def validators_on(*attributes)
attributes.map do |attribute|
_validators[attribute.to_sym]
View
6 activemodel/lib/active_model/validations/with.rb
@@ -126,12 +126,12 @@ def validates_with(*args, &block)
# end
#
# Standard configuration options (:on, :if and :unless), which are
- # available on the class version of validates_with, should instead be
- # placed on the <tt>validates</tt> method as these are applied and tested
+ # available on the class version of +validates_with+, should instead be
+ # placed on the +validates+ method as these are applied and tested
# in the callback
#
# If you pass any additional configuration options, they will be passed
- # to the class and available as <tt>options</tt>, please refer to the
+ # to the class and available as +options+, please refer to the
# class version of this method for more information
#
def validates_with(*args, &block)

0 comments on commit 8c16333

Please sign in to comment.
Something went wrong with that request. Please try again.