Class: MnoEnterprise::Identity
- Inherits:
-
BaseResource
- Object
- BaseResource
- MnoEnterprise::Identity
- Defined in:
- app/models/mno_enterprise/identity.rb
Class Method Summary collapse
Methods inherited from BaseResource
#==, base_class, #cache_key, #clear_association_cache, #clear_attribute_changes!, exists?, find_by, first, last, #max_updated_column_timestamp, #read_attribute, #reload, #save, #save!, #update, #write_attribute
Methods included from HerExtension::Validations::RemoteUniquenessValidation
Class Method Details
.find_for_oauth(auth) ⇒ Object
20 21 22 |
# File 'app/models/mno_enterprise/identity.rb', line 20 def self.find_for_oauth(auth) where(uid: auth.uid, provider: auth.provider).first_or_create end |