From a9e66c62e987e163cb80cd1dd71c1a2d4c7ce2b7 Mon Sep 17 00:00:00 2001
From: Francesco Rodriguez <lrodriguezsanc@gmail.com>
Date: Wed, 16 May 2012 08:56:31 -0500
Subject: fixing validates_with docs

---
 activemodel/lib/active_model/validations/with.rb | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

(limited to 'activemodel')

diff --git a/activemodel/lib/active_model/validations/with.rb b/activemodel/lib/active_model/validations/with.rb
index 991c5f7b82..66cc9daa2c 100644
--- a/activemodel/lib/active_model/validations/with.rb
+++ b/activemodel/lib/active_model/validations/with.rb
@@ -62,8 +62,8 @@ module ActiveModel
       #   <tt>:unless => Proc.new { |user| user.signup_step <= 2 }</tt>).
       #   The method, proc or string should return or evaluate to a true or false value.
       # * <tt>:strict</tt> - Specifies whether validation should be strict. 
-      #   See <tt>ActiveModel::Validation#validates!</tt> for more information
-
+      #   See <tt>ActiveModel::Validation#validates!</tt> for more information.
+      #
       # If you pass any additional configuration options, they will be passed
       # to the class and available as <tt>options</tt>:
       #
@@ -77,7 +77,6 @@ module ActiveModel
       #       options[:my_custom_key] # => "my custom value"
       #     end
       #   end
-      #
       def validates_with(*args, &block)
         options = args.extract_options!
         args.each do |klass|
@@ -128,12 +127,11 @@ module ActiveModel
     # Standard configuration options (:on, :if and :unless), which are
     # 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
+    # in the callback.
     #
     # If you pass any additional configuration options, they will be passed
     # to the class and available as +options+, please refer to the
-    # class version of this method for more information
-    #
+    # class version of this method for more information.
     def validates_with(*args, &block)
       options = args.extract_options!
       args.each do |klass|
-- 
cgit v1.2.3