Sha256: cc0db96cf764c26b372ae621fa1deef02df930bb6a506a6db3a1ce4bc69c6686

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

module Phcscriptcdn
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

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

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

    private

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
phcscriptcdn-54.3.0 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-54.2.0 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-54.1.0 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-54.0.0 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-53.0.0 app/controllers/phcscriptcdn/application_controller.rb
phcscriptcdn-52.0.0 app/controllers/phcscriptcdn/application_controller.rb