Sha256: b18e22181dc6ded1d3f6b81174c717037e4215d9138dab7e043867f18899029a

Contents?: true

Size: 483 Bytes

Versions: 49

Compression:

Stored size: 483 Bytes

Contents

module Phcscriptcdnpro
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

    # Load Helpers
    helper Phctitleseo::Engine.helpers
    helper Phcnotifi::Engine.helpers
    helper Phcaccountspro::Engine.helpers

    # Papertrail Whodunnit Username
    def user_for_paper_trail
      # Default is: current_user rescue nil
      current_user ? current_user.username : 'Public user'
    end

    private

  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
phcscriptcdnpro-34.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-34.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-33.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-32.0.1 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-32.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-31.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-30.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-30.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-29.0.0 app/controllers/phcscriptcdnpro/application_controller.rb