Sha256: b0c7be43a83163d576ea3d37909392214b0c76933ae9bed8dcf0035a33cc3196
Contents?: true
Size: 577 Bytes
Versions: 20
Compression:
Stored size: 577 Bytes
Contents
# encoding: utf-8 module ConstructorCore class ApplicationController < ::ApplicationController layout 'constructor_core/application_core' before_filter :authenticate_user!, :except => [:show, :search] helper_method :current_user private def authenticate_user! warden.authenticate! end def user_signed_in? !!current_user end def current_user @current_user ||= warden.authenticate end def user_session current_user && warden.session end def warden request.env['warden'] end end end
Version data entries
20 entries across 20 versions & 1 rubygems