aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/validations/validates.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-09 00:17:16 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-09 00:18:07 +0100
commit017f5d5308098438da0b8c44163af4ecb422f1e7 (patch)
treeb16f8fceb09cb0273fd6d5c5f2277754ab79c3c7 /activemodel/lib/active_model/validations/validates.rb
parent93898b389bafebc4d1b30a95330b4bb7d000c92d (diff)
downloadrails-017f5d5308098438da0b8c44163af4ecb422f1e7.tar.gz
rails-017f5d5308098438da0b8c44163af4ecb422f1e7.tar.bz2
rails-017f5d5308098438da0b8c44163af4ecb422f1e7.zip
Fix typo by renaming :genre to :gender.
Diffstat (limited to 'activemodel/lib/active_model/validations/validates.rb')
-rw-r--r--activemodel/lib/active_model/validations/validates.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/validates.rb b/activemodel/lib/active_model/validations/validates.rb
index ea7303c70b..80924f50d6 100644
--- a/activemodel/lib/active_model/validations/validates.rb
+++ b/activemodel/lib/active_model/validations/validates.rb
@@ -54,7 +54,7 @@ module ActiveModel
# The validators hash can also handle regular expressions, ranges and arrays:
#
# validates :email, :format => /@/
- # validates :genre, :inclusion => %w(mail female)
+ # validates :gender, :inclusion => %w(mail female)
# validates :password, :length => 6..20
#
# Finally, the options :if, :unless, :on, :allow_blank and :allow_nil can be given