Sha256: 43afb86cd5d469eb09f9fe00f9d31894ece6991407e8811c25d97eb6c42a6b1b

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

module Phcpresspro
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

    # Load Requried Helper Files
    helper PhcdevworksActiveMenus::Engine.helpers
    helper PhcdevworksNotifications::Engine.helpers
    helper PhcdevworksTitleseo::Engine.helpers
    helper PhcdevworksCore::Engine.helpers

    # Papertrail Whodunnit Username
    def user_for_paper_trail
      current_user ? current_user.username : 'Public user'
    end

    private

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcpresspro-87.0.3 app/controllers/phcpresspro/application_controller.rb
phcpresspro-87.0.2 app/controllers/phcpresspro/application_controller.rb
phcpresspro-87.0.1 app/controllers/phcpresspro/application_controller.rb
phcpresspro-87.0.0 app/controllers/phcpresspro/application_controller.rb