Sha256: a0fcd904bf0e46e8fbbd36945653a6cace67c3f57a90b3bd13814d2001c7eed7
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
module OdaniaOmniauthAuthentication class UserAuthentication < ActiveRecord::Base belongs_to :user, class_name: 'Odania::User' def self.find_with_omniauth(auth) find_by provider: auth['provider'], uid: auth['uid'] end def self.create_with_omniauth(auth) create(provider: auth['provider'], uid: auth['uid']) end end end
Version data entries
2 entries across 2 versions & 1 rubygems