Make pg happy

openid
Marcin Kulik 12 years ago
parent 445f0c60b0
commit adf2b30d8a

@ -5,7 +5,7 @@ class SessionsController < ApplicationController
def create
@user =
User.find_by_provider_and_uid(@auth["provider"], @auth["uid"]) ||
User.find_by_provider_and_uid(@auth["provider"], @auth["uid"].to_s) ||
User.create_with_omniauth(@auth)
unless @user.persisted?

Loading…
Cancel
Save