aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc
diff options
context:
space:
mode:
authorCassioMarques <cassiommc@gmail.com>2009-01-15 00:15:02 -0200
committerCassioMarques <cassiommc@gmail.com>2009-01-15 00:15:02 -0200
commit301b2fefaa6d6527af7312ac6ffedcc989f66512 (patch)
tree0edc30836b01bfd8cceb6ce71e40af1644fb9cdb /railties/doc
parent9cc7a1e04dc99dc47d11b6303fdb011532ce19b1 (diff)
downloadrails-301b2fefaa6d6527af7312ac6ffedcc989f66512.tar.gz
rails-301b2fefaa6d6527af7312ac6ffedcc989f66512.tar.bz2
rails-301b2fefaa6d6527af7312ac6ffedcc989f66512.zip
Fixing mistake in code example with validates_numericality_of and :only_integer option
Diffstat (limited to 'railties/doc')
-rw-r--r--railties/doc/guides/source/activerecord_validations_callbacks.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/activerecord_validations_callbacks.txt b/railties/doc/guides/source/activerecord_validations_callbacks.txt
index 849954a190..c864b91498 100644
--- a/railties/doc/guides/source/activerecord_validations_callbacks.txt
+++ b/railties/doc/guides/source/activerecord_validations_callbacks.txt
@@ -223,7 +223,7 @@ If you set +:integer_only+ to +true+, then it will use the +$$/\A[+\-]?\d+\Z/$$+
------------------------------------------------------------------
class Player < ActiveRecord::Base
validates_numericality_of :points
- validates_numericality_of :games_played, :integer_only => true
+ validates_numericality_of :games_played, :only_integer => true
end
------------------------------------------------------------------