Skip to content
This repository
Browse code

revise docs [ci skip]

  • Loading branch information...
commit d7a85c5c51534ed627cc50d0086284006a62ac71 1 parent 479f3b4
Vijay Dev authored February 01, 2012
6  activemodel/lib/active_model/validations/validates.rb
@@ -100,12 +100,12 @@ def validates(*attributes)
100 100
         end
101 101
       end
102 102
 
103  
-      # This method is used to define validation that cannot be corrected by end
104  
-      # user and is considered exceptional. So each validator defined with bang
  103
+      # This method is used to define validations that cannot be corrected by end
  104
+      # users and are considered exceptional. So each validator defined with bang
105 105
       # or <tt>:strict</tt> option set to <tt>true</tt> will always raise
106 106
       # <tt>ActiveModel::StrictValidationFailed</tt> instead of adding error
107 107
       # when validation fails.
108  
-      # See <tt>validates</tt> for more information about validation itself.
  108
+      # See <tt>validates</tt> for more information about the validation itself.
109 109
       def validates!(*attributes)
110 110
         options = attributes.extract_options!
111 111
         options[:strict] = true
2  activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -35,7 +35,7 @@ def html_escape(s)
35 35
     singleton_class.send(:remove_method, :html_escape)
36 36
     module_function :html_escape
37 37
 
38  
-    # Returns an escaped version of +html+ without affecting existing escaped entities.
  38
+    # A utility method for escaping HTML without affecting existing escaped entities.
39 39
     #
40 40
     # ==== Examples
41 41
     #   html_escape_once("1 < 2 &amp; 3")

0 notes on commit d7a85c5

Please sign in to comment.
Something went wrong with that request. Please try again.