Permalink
Browse files

removes questionable :message examples (reported in Rails LH #2107)

  • Loading branch information...
1 parent 6680bc8 commit 0cf49381d115d641dee242b6a62e0a5dc91c2ce3 @fxn fxn committed Mar 4, 2009
@@ -4,7 +4,7 @@ module ClassMethods
# 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
@@ -802,7 +802,7 @@ def validates_format_of(*attr_names)
# 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 {{value}} is not included in the list"
# end

0 comments on commit 0cf4938

Please sign in to comment.