Class: Metova::Identity

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/metova/identity.rb

Class Method Summary collapse

Class Method Details

.find_or_initialize_with_omniauth(auth) ⇒ Object



8
9
10
# File 'app/models/metova/identity.rb', line 8

def self.find_or_initialize_with_omniauth(auth)
  find_or_initialize_by uid: auth.uid, provider: auth.provider
end