blob: 720f240c857bde77e688833cf7f4a5f38732dba0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class User < ActiveRecord::Base
attr_accessible :name, :provider, :uid
def self.create_with_omniauth(auth)
Rails.logger.info "#{auth}"
create! do |user|
user.provider = auth["provider"]
user.uid = auth["uid"]
user.name = auth["info"]["name"]
end
end
end
|