Module: Billfold::ActiveRecordIdentity::ClassMethods
- Includes:
- Identity::ClassMethods
- Defined in:
- lib/billfold/active_record_identity.rb
Instance Method Summary collapse
-
#with_provider_and_value(provider, value) ⇒ Object
Billfold::Identity.with_provider_and_value.
Methods included from Identity::ClassMethods
Instance Method Details
#with_provider_and_value(provider, value) ⇒ Object
Billfold::Identity.with_provider_and_value
Return the identity with the given provider and value, or nil,
if no such identity exists. Including classes must redefine this
method.
33 34 35 |
# File 'lib/billfold/active_record_identity.rb', line 33 def with_provider_and_value(provider, value) where(:provider => provider, :value => value).first end |