From d7a85c5c51534ed627cc50d0086284006a62ac71 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Wed, 1 Feb 2012 23:20:24 +0530 Subject: revise docs [ci skip] --- activemodel/lib/active_model/validations/validates.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activemodel/lib') diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb index 9bb72d6631..d94c4e3f4f 100644 --- a/activemodel/lib/active_model/validations/validates.rb +++ b/activemodel/lib/active_model/validations/validates.rb @@ -100,12 +100,12 @@ module ActiveModel end end - # This method is used to define validation that cannot be corrected by end - # user and is considered exceptional. So each validator defined with bang + # This method is used to define validations that cannot be corrected by end + # users and are considered exceptional. So each validator defined with bang # or :strict option set to true will always raise # ActiveModel::StrictValidationFailed instead of adding error # when validation fails. - # See validates for more information about validation itself. + # See validates for more information about the validation itself. def validates!(*attributes) options = attributes.extract_options! options[:strict] = true -- cgit v1.2.3