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 | |
parent | 479f3b4054b7db8c0f9bd325c0e27c918223e02b (diff) | |
download | rails-d7a85c5c51534ed627cc50d0086284006a62ac71.tar.gz rails-d7a85c5c51534ed627cc50d0086284006a62ac71.tar.bz2 rails-d7a85c5c51534ed627cc50d0086284006a62ac71.zip |
revise docs [ci skip]
-rw-r--r-- | activemodel/lib/active_model/validations/validates.rb | 6 | ||||
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 104ee251de..dd780da157 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -35,7 +35,7 @@ class ERB singleton_class.send(:remove_method, :html_escape) module_function :html_escape - # Returns an escaped version of +html+ without affecting existing escaped entities. + # A utility method for escaping HTML without affecting existing escaped entities. # # ==== Examples # html_escape_once("1 < 2 & 3") |