Sha256: 563f82dac2eb04826a6cbb024b0124fb273ba6402cdfde543a6268724c6c0841

Contents?: true

Size: 595 Bytes

Versions: 2

Compression:

Stored size: 595 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
phccodesnipper-1.1.0 app/controllers/phccodesnipper/application_controller.rb
phccodesnipper-1.0.0 app/controllers/phccodesnipper/application_controller.rb