Class: Identity

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

Class Method Summary collapse

Class Method Details

.find_for_oauth(auth) ⇒ Object



6
7
8
# File 'app/models/identity.rb', line 6

def self.find_for_oauth(auth)
  where(name: auth.uid, provider: auth.provider).first_or_create
end