Permalink
Browse files

revise docs [ci skip]

  • Loading branch information...
vijaydev committed Feb 1, 2012
1 parent 479f3b4 commit d7a85c5c51534ed627cc50d0086284006a62ac71
@@ -100,12 +100,12 @@ def validates(*attributes)
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
@@ -35,7 +35,7 @@ def html_escape(s)
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 &amp; 3")

0 comments on commit d7a85c5

Please sign in to comment.