aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorCassioMarques <cassiommc@gmail.com>2009-03-12 10:37:16 -0300
committerCassioMarques <cassiommc@gmail.com>2009-03-12 10:37:16 -0300
commit053afbe3bd26d627ee04a0aaa73554b7be422f05 (patch)
tree76f16ea9cf59af01cc0df4177cf33804b4ca5a13 /railties/guides/source
parentc351aec92f1e56b6e145b5b58ac245da34c02840 (diff)
downloadrails-053afbe3bd26d627ee04a0aaa73554b7be422f05.tar.gz
rails-053afbe3bd26d627ee04a0aaa73554b7be422f05.tar.bz2
rails-053afbe3bd26d627ee04a0aaa73554b7be422f05.zip
Changing :integer_only to :only_integer in the AR Validations and Callbacks guide
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/activerecord_validations_callbacks.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/activerecord_validations_callbacks.textile b/railties/guides/source/activerecord_validations_callbacks.textile
index 1aacdd080c..9c9aaf9ad2 100644
--- a/railties/guides/source/activerecord_validations_callbacks.textile
+++ b/railties/guides/source/activerecord_validations_callbacks.textile
@@ -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/