Sha256: 9c287c7e8d50a9fb431c8a4e1c21e725a4529d96e530f83e76cc88eefddfff22

Contents?: true

Size: 531 Bytes

Versions: 8

Compression:

Stored size: 531 Bytes

Contents

module Phcscriptcdnpro
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

    # Load Requried Helper Files
    helper Phcaccountspro::Engine.helpers
    helper Phccorehelpers::Engine.helpers
    helper Phcmenus::Engine.helpers
    helper Phctitleseo::Engine.helpers
    helper Phcnotifi::Engine.helpers

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

    private

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcscriptcdnpro-78.4.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-78.3.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-78.2.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-78.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-78.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-77.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-75.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-74.0.0 app/controllers/phcscriptcdnpro/application_controller.rb