diff options
author | Xavier Noria <fxn@hashref.com> | 2009-03-04 23:38:17 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-03-04 23:38:17 +0100 |
commit | 0cf49381d115d641dee242b6a62e0a5dc91c2ce3 (patch) | |
tree | e79f411c15433bca32ee23b277f86083a614b1e7 | |
parent | 6680bc898a06ae8bc96fdd319bb7dff6ff9dd685 (diff) | |
download | rails-0cf49381d115d641dee242b6a62e0a5dc91c2ce3.tar.gz rails-0cf49381d115d641dee242b6a62e0a5dc91c2ce3.tar.bz2 rails-0cf49381d115d641dee242b6a62e0a5dc91c2ce3.zip |
removes questionable :message examples (reported in Rails LH #2107)
-rw-r--r-- | activemodel/lib/active_model/validations/inclusion.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 8f3c80565e..8862bd05d6 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -802,7 +802,7 @@ module ActiveRecord # 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 |