From ce40df20ec8541b6ccd1c7053b504d6345396b2f Mon Sep 17 00:00:00 2001 From: Sunny Date: Sun, 17 Aug 2008 19:21:13 +0200 Subject: Wrong default for validate_uniqueness_of's :case_sensitive --- activemodel/lib/active_model/validations/uniqueness.rb | 4 ++-- activerecord/lib/active_record/validations.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/activemodel/lib/active_model/validations/uniqueness.rb b/activemodel/lib/active_model/validations/uniqueness.rb index 2b47c6bc09..68cd6169e5 100644 --- a/activemodel/lib/active_model/validations/uniqueness.rb +++ b/activemodel/lib/active_model/validations/uniqueness.rb @@ -25,7 +25,7 @@ module ActiveModel # Configuration options: # * :message - Specifies a custom error message (default is: "has already been taken") # * :scope - One or more columns by which to limit the scope of the uniqueness constraint. - # * :case_sensitive - Looks for an exact match. Ignored by non-text columns (+false+ by default). + # * :case_sensitive - Looks for an exact match. Ignored by non-text columns (+true+ by default). # * :allow_nil - If set to +true+, skips this validation if the attribute is +nil+ (default is: +false+) # * :allow_blank - If set to +true+, skips this validation if the attribute is blank (default is: +false+) # * :if - Specifies a method, proc or string to call to determine if the validation should @@ -101,4 +101,4 @@ module ActiveModel end end end -end \ No newline at end of file +end diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index e7a9676394..b8b695e529 100644 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -597,7 +597,7 @@ module ActiveRecord # Configuration options: # * :message - Specifies a custom error message (default is: "has already been taken"). # * :scope - One or more columns by which to limit the scope of the uniqueness constraint. - # * :case_sensitive - Looks for an exact match. Ignored by non-text columns (+false+ by default). + # * :case_sensitive - Looks for an exact match. Ignored by non-text columns (+true+ by default). # * :allow_nil - If set to true, skips this validation if the attribute is +nil+ (default is +false+). # * :allow_blank - If set to true, skips this validation if the attribute is blank (default is +false+). # * :if - Specifies a method, proc or string to call to determine if the validation should -- cgit v1.2.3