diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-01 23:20:24 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-02-01 23:31:43 +0530 |
commit | d7a85c5c51534ed627cc50d0086284006a62ac71 (patch) | |
tree | d216886ad674ddeacf138059cb93fa23503dad5a /activemodel/lib | |
parent | 479f3b4054b7db8c0f9bd325c0e27c918223e02b (diff) | |
download | rails-d7a85c5c51534ed627cc50d0086284006a62ac71.tar.gz rails-d7a85c5c51534ed627cc50d0086284006a62ac71.tar.bz2 rails-d7a85c5c51534ed627cc50d0086284006a62ac71.zip |
revise docs [ci skip]
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 6 |
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 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 <tt>:strict</tt> option set to <tt>true</tt> will always raise # <tt>ActiveModel::StrictValidationFailed</tt> instead of adding error # when validation fails. - # See <tt>validates</tt> for more information about validation itself. + # See <tt>validates</tt> for more information about the validation itself. def validates!(*attributes) options = attributes.extract_options! options[:strict] = true |