Class: Authlogic::ActsAsAuthentic::Queries::FindWithCase Private
- Inherits:
-
Object
- Object
- Authlogic::ActsAsAuthentic::Queries::FindWithCase
- Defined in:
- lib/authlogic/acts_as_authentic/queries/find_with_case.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The query used by public-API method ‘find_by_smart_case_login_field`.
Constant Summary collapse
- AR_GEM_VERSION =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
ActiveRecord.gem_version.freeze
Instance Method Summary collapse
- #execute ⇒ Object private
-
#initialize(model_class, field, value, sensitive) ⇒ FindWithCase
constructor
private
A new instance of FindWithCase.
Constructor Details
#initialize(model_class, field, value, sensitive) ⇒ FindWithCase
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of FindWithCase.
12 13 14 15 16 17 |
# File 'lib/authlogic/acts_as_authentic/queries/find_with_case.rb', line 12 def initialize(model_class, field, value, sensitive) @model_class = model_class @field = field.to_s @value = value @sensitive = sensitive end |
Instance Method Details
#execute ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
20 21 22 |
# File 'lib/authlogic/acts_as_authentic/queries/find_with_case.rb', line 20 def execute bind(relation).first end |