Sha256: e99e3745d6de490a5358c3d779404cba06dc292e12e7b107da3cbeb21d570233
Contents?: true
Size: 286 Bytes
Versions: 4
Compression:
Stored size: 286 Bytes
Contents
class ApplicationController < ActionController::Base include ControllerAuthentication protect_from_forgery def current_user @current_user ||= find_current_user end private def find_current_user User.find(session[:user_id]) if session[:user_id].present? end end
Version data entries
4 entries across 4 versions & 1 rubygems