aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorOscar Del Ben <info@oscardelben.com>2012-04-26 10:34:51 +0200
committerOscar Del Ben <info@oscardelben.com>2012-04-26 10:34:51 +0200
commit8c1633328699cc00b1b8a893bffa6390c2cdfcc0 (patch)
treef69c3b7cddd4b9a76e90c130095fd3908e932427 /activemodel/lib/active_model
parent26353b993b3bfb52d6c4adb92b6aa08d9712fd06 (diff)
downloadrails-8c1633328699cc00b1b8a893bffa6390c2cdfcc0.tar.gz
rails-8c1633328699cc00b1b8a893bffa6390c2cdfcc0.tar.bz2
rails-8c1633328699cc00b1b8a893bffa6390c2cdfcc0.zip
minor docs improvements
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/validations.rb2
-rw-r--r--activemodel/lib/active_model/validations/with.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index b5e9d7514a..3ed72bae3b 100644
--- a/activemodel/lib/active_model/validations.rb
+++ b/activemodel/lib/active_model/validations.rb
@@ -158,7 +158,7 @@ module ActiveModel
_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]
diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb
index 72b8562b93..991c5f7b82 100644
--- a/activemodel/lib/active_model/validations/with.rb
+++ b/activemodel/lib/active_model/validations/with.rb
@@ -126,12 +126,12 @@ module ActiveModel
# 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)