omniauth strategy

This commit is contained in:
Zachary Chai
2016-10-17 14:26:31 -04:00
parent c32b48213a
commit 0d73a77f1f
10 changed files with 99 additions and 2 deletions

View File

@ -1,3 +1,8 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
def current_user
@current_user ||= User.find_by(id: session[:user_id])
end
helper_method :current_user
end