Sha256: 135c62d2b560018230f9860f9b949b18fc1db75a3a9ff257ea765100a7bd0c35
Contents?: true
Size: 492 Bytes
Versions: 2
Compression:
Stored size: 492 Bytes
Contents
module Phcpress class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception before_action :current_user # Make Current User Sitewide def current_user return unless session[:user_id] @current_user ||= User.find(session[:user_id]) end # Load Helpers helper Phctitleseo::Engine.helpers helper Phcnotifi::Engine.helpers end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcpress-3.8.1 | app/controllers/phcpress/application_controller.rb |
phcpress-3.8.0 | app/controllers/phcpress/application_controller.rb |