Permalink
Browse files

Merge pull request #303 from xz911/master

Fixed code documentation for find_by_smart_case_login_field
  • Loading branch information...
2 parents 5eb0267 + d6c7dd5 commit 570b78608999723b688db9147d8ad654da37d9db @binarylogic committed Apr 2, 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 570b786

Please sign in to comment.