Skip to content

Commit

Permalink
Update validates_inclusion_of example
Browse files Browse the repository at this point in the history
  • Loading branch information
cassidycodes committed Apr 18, 2018
1 parent b05fc6e commit 8b13506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/validations/inclusion.rb
Expand Up @@ -19,7 +19,7 @@ module HelperMethods
# 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] }
Expand Down

0 comments on commit 8b13506

Please sign in to comment.