aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authordreamfall <amarant.st@gmail.com>2012-01-17 13:19:30 +0300
committerdreamfall <amarant.st@gmail.com>2012-01-17 13:19:30 +0300
commit7c3a5ec49942928ecef1007b21a1cbc3d89ebbf2 (patch)
tree981f57e28a2c14b3eee85d0e6c0e9c2822652ec1 /activemodel/lib
parente84998cc212c6c96c279ebd41619f51054f5642f (diff)
downloadrails-7c3a5ec49942928ecef1007b21a1cbc3d89ebbf2.tar.gz
rails-7c3a5ec49942928ecef1007b21a1cbc3d89ebbf2.tar.bz2
rails-7c3a5ec49942928ecef1007b21a1cbc3d89ebbf2.zip
whitespaces
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations/validates.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb
index 0e6b349e94..3713fc828e 100644
--- a/activemodel/lib/active_model/validations/validates.rb
+++ b/activemodel/lib/active_model/validations/validates.rb
@@ -59,7 +59,7 @@ module ActiveModel
#
# 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 ActiveModel
# 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 @@ module ActiveModel
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