Class: JustOpenId::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- JustOpenId::User
- Defined in:
- app/models/just_open_id/user.rb
Class Method Summary collapse
Class Method Details
.create_with_omniauth(auth) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/models/just_open_id/user.rb', line 5 def self.create_with_omniauth(auth) create! do |user| user.provider = auth["provider"] user.uid = auth["uid"] user.name = auth["user_info"]["name"] end end |