Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing :integer_only to :only_integer in the AR Validations and Cal…

…lbacks guide
  • Loading branch information...
commit 053afbe3bd26d627ee04a0aaa73554b7be422f05 1 parent c351aec
Cássio Marques cassiomarques authored
4 railties/guides/source/activerecord_validations_callbacks.textile
View
@@ -316,9 +316,9 @@ The +validates_size_of+ helper is an alias for +validates_length_of+.
h4. +validates_numericality_of+
-This helper validates that your attributes have only numeric values. By default, it will match an optional sign followed by an integral or floating point number. To specify that only integral numbers are allowed set +:integer_only+ to true.
+This helper validates that your attributes have only numeric values. By default, it will match an optional sign followed by an integral or floating point number. To specify that only integral numbers are allowed set +:only_integer+ to true.
-If you set +:integer_only+ to +true+, then it will use the
+If you set +:only_integer+ to +true+, then it will use the
<ruby>
/\A[+-]?\d+\Z/
Please sign in to comment.
Something went wrong with that request. Please try again.