Permalink
Browse files

whitespaces

  • Loading branch information...
1 parent e84998c commit 7c3a5ec49942928ecef1007b21a1cbc3d89ebbf2 @dreamfall dreamfall committed Jan 17, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/lib/active_model/validations/validates.rb
@@ -59,7 +59,7 @@ module ClassMethods
#
# validates :name, :'film/title' => true
#
- # The validators hash can also handle regular expressions, ranges,
+ # The validators hash can also handle regular expressions, ranges,
# arrays and strings in shortcut form, e.g.
#
# validates :email, :format => /@/
@@ -70,7 +70,7 @@ module ClassMethods
# validator's initializer as +options[:in]+ while other types including
# regular expressions and strings are passed as +options[:with]+
#
- # Finally, the options +:if+, +:unless+, +:on+, +:allow_blank+, +:allow_nil+ and +:strict+
+ # Finally, the options +:if+, +:unless+, +:on+, +:allow_blank+, +:allow_nil+ and +:strict+
# can be given to one specific validator, as a hash:
#
# validates :password, :presence => { :if => :password_required? }, :confirmation => true
@@ -102,7 +102,7 @@ def validates(*attributes)
end
# This method is used to define validation that can not be corrected by end user
- # and is considered exceptional.
+ # and is considered exceptional.
# So each validator defined with bang or <tt>:strict</tt> option set to <tt>true</tt>
# will always raise <tt>ActiveModel::InternalValidationFailed</tt> instead of adding error
# when validation fails

0 comments on commit 7c3a5ec

Please sign in to comment.