Sha256: ebfc205223fd5ca4ac03c3577afad287a1c9582da8ba17e46b87797b4f1b5fbf

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

module Phcscriptcdnpro
  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
phcscriptcdnpro-79.0.3 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-79.0.2 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-79.0.1 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-79.0.0 app/controllers/phcscriptcdnpro/application_controller.rb