diff options
author | Sunny <negatif@gmail.com> | 2008-08-17 19:21:13 +0200 |
---|---|---|
committer | Sunny <negatif@gmail.com> | 2008-08-17 19:26:54 +0200 |
commit | ce40df20ec8541b6ccd1c7053b504d6345396b2f (patch) | |
tree | 4ac7d48b0cd637c60920fa9952ea543ab8cc3dfb /activerecord | |
parent | 061923371cc8f24b93aedb7842938a69fea6ac19 (diff) | |
download | rails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.tar.gz rails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.tar.bz2 rails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.zip |
Wrong default for validate_uniqueness_of's :case_sensitive
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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: # * <tt>:message</tt> - Specifies a custom error message (default is: "has already been taken"). # * <tt>:scope</tt> - One or more columns by which to limit the scope of the uniqueness constraint. - # * <tt>:case_sensitive</tt> - Looks for an exact match. Ignored by non-text columns (+false+ by default). + # * <tt>:case_sensitive</tt> - Looks for an exact match. Ignored by non-text columns (+true+ by default). # * <tt>:allow_nil</tt> - If set to true, skips this validation if the attribute is +nil+ (default is +false+). # * <tt>:allow_blank</tt> - If set to true, skips this validation if the attribute is blank (default is +false+). # * <tt>:if</tt> - Specifies a method, proc or string to call to determine if the validation should |