module Phcscriptcdnpro 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 end end