module DeviseIosRails::OAuth::ClassMethods
Public Instance Methods
from_oauth(attributes)
click to toggle source
# File lib/devise-ios-rails/oauth.rb, line 19 def from_oauth attributes where(attributes.slice(:uid, :provider)).first_or_create do |user| user.oauth_email = attributes[:email] user.provider = attributes[:provider] user.uid = attributes[:uid] user.oauth_token = attributes[:oauth_token] end end