Permalink
Browse files

change documents for find_by_smart_case_login_field

  • Loading branch information...
1 parent 309187b commit d6c7dd542f82f764b9fe16bac1f1e464a415be07 @Jeffxz Jeffxz committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/acts_as_authentic/login.rb
@@ -94,7 +94,7 @@ def merge_validates_uniqueness_of_login_field_options(options = {})
# manner that they handle that. If you are using the login field and set false for the :case_sensitive option in
# validates_uniqueness_of_login_field_options this method will modify the query to look something like:
#
- # where("LOWER(#{quoted_table_name}.#{login_field}) = ?", login.downcase).first
+ # where("#{quoted_table_name}.#{field} LIKE ?", login).first
#
# If you don't specify this it calls the good old find_by_* method:
#
@@ -139,4 +139,4 @@ def self.included(klass)
end
end
end
-end
+end

0 comments on commit d6c7dd5

Please sign in to comment.