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)
	find_or_create_by(uid: auth.uid, provider: auth.provider)
end