diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-16 11:28:36 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-16 11:28:36 +0000 |
commit | 18eb80ccc7e932f9a6c00462ceaeea648631b120 (patch) | |
tree | d0bc7c4760197a4abdea3b3f008a1615436acf54 /activemodel/lib | |
parent | 4185a4a5f5e53b55c9ba3757a837d33fb91f4091 (diff) | |
download | rails-18eb80ccc7e932f9a6c00462ceaeea648631b120.tar.gz rails-18eb80ccc7e932f9a6c00462ceaeea648631b120.tar.bz2 rails-18eb80ccc7e932f9a6c00462ceaeea648631b120.zip |
Merge docrails
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/validations/inclusion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/inclusion.rb b/activemodel/lib/active_model/validations/inclusion.rb index 9b4cb64307..f288810d90 100644 --- a/activemodel/lib/active_model/validations/inclusion.rb +++ b/activemodel/lib/active_model/validations/inclusion.rb @@ -4,7 +4,7 @@ module ActiveModel # Validates whether the value of the specified attribute is available in a particular enumerable object. # # class Person < ActiveRecord::Base - # validates_inclusion_of :gender, :in => %w( m f ), :message => "woah! what are you then!??!!" + # validates_inclusion_of :gender, :in => %w( m f ) # validates_inclusion_of :age, :in => 0..99 # validates_inclusion_of :format, :in => %w( jpg gif png ), :message => "extension %s is not included in the list" # end |