Sha256: 80921c4ee7c137ff17042ac74e2a3d60e5a67b4505ec689e8238ea84b3329227
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
module IdentityClient class User < ActiveRecord::Base def self.create_with_omniauth(auth) create! do |user| user.provider = auth["provider"] user.uid = auth["uid"] user.name = "#{auth["info"]['first_name']} #{auth['info']['last_name']}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
identity_client-0.1.2 | app/models/identity_client/user.rb |
identity_client-0.1.1 | app/models/identity_client/user.rb |
identity_client-0.1.0 | app/models/identity_client/user.rb |