Module: Minnie::User::Omniauth::InstanceMethods
- Defined in:
- lib/minnie-omniauth/user/omniauth.rb
Instance Method Summary collapse
Instance Method Details
#assign_account_info(auth_hash) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/minnie-omniauth/user/omniauth.rb', line 25 def assign_account_info(auth_hash) self.uid = auth_hash['uid'] self.name = auth_hash['info']['name'] self.username = auth_hash['info']['nickname'] if auth_hash['info']['nickname'] self.access_token = auth_hash['credentials']['token'] if auth_hash['credentials']['token'] self.access_token_secret = auth_hash['credentials']['secret'] if auth_hash['credentials']['secret'] end |