Sha256: d5014207d86483ede187b9d3fbde2d638bb4f44b3a049d6c72e5e91f3ab9e1d8
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
module Phcpresspro class ApplicationController < ActionController::Base # Security Filters protect_from_forgery with: :exception # Load Helpers helper Phctitleseo::Engine.helpers helper Phcnotifi::Engine.helpers helper Phcaccountspro::Engine.helpers # Papertrail Whodunnit Username def user_for_paper_trail current_user ? current_user.username : 'Public user' end private def phcaccounts_pro_admin_filter! if current_user.admin? else end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcpresspro-78.1.0 | app/controllers/phcpresspro/application_controller.rb |
phcpresspro-78.0.0 | app/controllers/phcpresspro/application_controller.rb |