Sha256: ecd3e26713257cb9e2ea4d91a819b9e68afa4481e04fbe67008e8ae6ba93e402
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 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? # Load Engine Helpers in Main App helper Phcnotifi::Engine.helpers # helper Phctitler::Engine.helpers # Make Current User Sitewide def current_user?(user) user == current_user end end end
Version data entries
3 entries across 3 versions & 1 rubygems