class Authlogic::ActsAsAuthentic::Queries::FindWithCase

The query used by public-API method ‘find_by_smart_case_login_field`.

We use the rails methods ‘case_insensitive_comparison` and `case_sensitive_comparison`. These methods nicely take into account MySQL collations. (Consider the case where a user says they want a case-sensitive uniqueness validation, but then they configure their database to have an insensitive collation. Rails will handle this for us, by downcasing, see `active_record/connection_adapters/abstract_mysql_adapter.rb`) So that’s great! But, these methods are not part of rails’ public API, so there are no docs. So, everything we know about how to use the methods correctly comes from mimicing what we find in ‘active_record/validations/uniqueness.rb`.

@api private