Sha256: 5923e2846237133275e77a2aaa73809e852a88058db2ded64260b5a02fc15da3

Contents?: true

Size: 521 Bytes

Versions: 7

Compression:

Stored size: 521 Bytes

Contents

module Phcpress
  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

7 entries across 7 versions & 1 rubygems

Version Path
phcpress-56.4.0 app/controllers/phcpress/application_controller.rb
phcpress-56.3.0 app/controllers/phcpress/application_controller.rb
phcpress-56.2.0 app/controllers/phcpress/application_controller.rb
phcpress-56.1.0 app/controllers/phcpress/application_controller.rb
phcpress-56.0.0 app/controllers/phcpress/application_controller.rb
phcpress-55.0.0 app/controllers/phcpress/application_controller.rb
phcpress-54.0.0 app/controllers/phcpress/application_controller.rb