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-47.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-46.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-45.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-45.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-44.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-43.2.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-43.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-43.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-42.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-41.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-40.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-40.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-39.0.1 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-39.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-38.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-38.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-37.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-36.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-36.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-35.0.1 app/controllers/phcscriptcdnpro/application_controller.rb