Sha256: b2c042725b3fed635e494b01483394f08f1948eb36a57feb3d4822b2d008c349

Contents?: true

Size: 515 Bytes

Versions: 4

Compression:

Stored size: 515 Bytes

Contents

module Phcscriptcdn
  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
phcscriptcdn-55.0.3 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-55.0.2 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-55.0.1 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-55.0.0 app/controllers/phcscriptcdn/application_controller.rb