Rework for generalizing some methods

This commit is contained in:
jfederico
2016-10-19 15:41:15 -04:00
parent 8d6904e183
commit 12aac189a8
6 changed files with 36 additions and 20 deletions

View File

@ -3,7 +3,6 @@ require 'digest/sha1'
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
include ApplicationHelper
def current_user
@current_user ||= User.find_by(id: session[:user_id])