aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSunny <negatif@gmail.com>2008-08-17 19:21:13 +0200
committerSunny <negatif@gmail.com>2008-08-17 19:26:54 +0200
commitce40df20ec8541b6ccd1c7053b504d6345396b2f (patch)
tree4ac7d48b0cd637c60920fa9952ea543ab8cc3dfb /activemodel
parent061923371cc8f24b93aedb7842938a69fea6ac19 (diff)
downloadrails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.tar.gz
rails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.tar.bz2
rails-ce40df20ec8541b6ccd1c7053b504d6345396b2f.zip
Wrong default for validate_uniqueness_of's :case_sensitive
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/validations/uniqueness.rb4
1 files changed, 2 insertions, 2 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:
# * <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
@@ -101,4 +101,4 @@ module ActiveModel
end
end
end
-end \ No newline at end of file
+end