Sha256: 7e86ea2823c742ed8473cccba9f4da1603224c94f2dfb227f376a1995494b6a7
Contents?: true
Size: 229 Bytes
Versions: 10
Compression:
Stored size: 229 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery helper_method :current_user, :logged_in? def current_user User.find_by_id(session[:user_id]) end def logged_in? current_user end end
Version data entries
10 entries across 10 versions & 1 rubygems