aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorCassidy Kobewka <hello@cassidy.codes>2018-04-17 21:16:33 -0400
committerCassidy Kobewka <hello@cassidy.codes>2018-04-17 21:16:33 -0400
commit8b135062171a8dd64ff14d695a019e81c48e45d1 (patch)
treecfb7a52f75cab672dfc8a7827cf446e62a383017 /activemodel/lib
parentb05fc6e8102da501ff32504aafeef71c7a20faaa (diff)
downloadrails-8b135062171a8dd64ff14d695a019e81c48e45d1.tar.gz
rails-8b135062171a8dd64ff14d695a019e81c48e45d1.tar.bz2
rails-8b135062171a8dd64ff14d695a019e81c48e45d1.zip
Update validates_inclusion_of example
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/validations/inclusion.rb2
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 3104e7e329..9c12dc14c5 100644
--- a/activemodel/lib/active_model/validations/inclusion.rb
+++ b/activemodel/lib/active_model/validations/inclusion.rb
@@ -19,7 +19,7 @@ module ActiveModel
# particular enumerable object.
#
# class Person < ActiveRecord::Base
- # validates_inclusion_of :gender, in: %w( m f )
+ # validates_inclusion_of :role, in: %w( admin contributor )
# validates_inclusion_of :age, in: 0..99
# validates_inclusion_of :format, in: %w( jpg gif png ), message: "extension %{value} is not included in the list"
# validates_inclusion_of :states, in: ->(person) { STATES[person.country] }