Commit 25a08a44 authored by Daniel Libanori's avatar Daniel Libanori
Browse files

Debuging mongo connection

parent 5ce31b69
......@@ -11,15 +11,8 @@ class User
has_many :messages
def self.create_with_omniauth(auth)
logger.info auth.to_yaml
create
create! do |user|
logger.info '---'
logger.info auth['provider']
logger.info auth['uid']
logger.info auth['info']['nickname']
logger.info '---'
user.provider = auth['provider']
user.uid = auth['uid']
user.login = auth['info']['nickname']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment