/ as root

This commit is contained in:
Joerg Reichert 2016-04-10 20:32:49 +02:00
parent cc17cd5f16
commit 64d40a3e9c
2 changed files with 1 additions and 24 deletions

View file

@ -1,19 +0,0 @@
class SessionsController < ApplicationController
def create
if user = User.find_or_create_from_auth_hash(auth_hash)
session[:user_id] = user.id
end
redirect_to root_path
end
def destroy
reset_session
redirect_to root_path
end
protected
def auth_hash
request.env['omniauth.auth']
end
end