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-64.1.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-64.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-63.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-62.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-61.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-60.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-59.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-58.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-57.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-56.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-55.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-54.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-53.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-52.0.2 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-52.0.1 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-52.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-51.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-50.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-49.0.0 app/controllers/phcscriptcdnpro/application_controller.rb
phcscriptcdnpro-48.0.0 app/controllers/phcscriptcdnpro/application_controller.rb