Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed code documentation for find_by_smart_case_login_field #303

Merged
1 commit merged into from

1 participant

@Jeffxz

I found that code document is a little different with code for find_by_smart_case_login_field @ login.rb.

Sorry for duplicating, this is same with issue #302

@ghost ghost merged commit 570b786 into from
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 8, 2012
  1. @Jeffxz
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/acts_as_authentic/login.rb
View
4 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
Something went wrong with that request. Please try again.