Sha256: 9dbd679f40c416118a314fbd19755b0953ccb8fc28bec8390541ef6635d39e99

Contents?: true

Size: 533 Bytes

Versions: 8

Compression:

Stored size: 533 Bytes

Contents

module Phccodesnipperpro
  class ApplicationController < ActionController::Base

    # Security Filters
    protect_from_forgery with: :exception

    # Load Requried Helper Files
    helper Phcaccountspro::Engine.helpers
    helper Phccorehelpers::Engine.helpers
    helper Phcmenus::Engine.helpers
    helper Phctitleseo::Engine.helpers
    helper Phcnotifi::Engine.helpers

    # Papertrail Whodunnit Username
    def user_for_paper_trail
      current_user ? current_user.username : 'Public user'
    end

    private

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phccodesnipperpro-4.4.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-4.3.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-4.2.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-4.1.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-4.0.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-3.0.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-2.0.0 app/controllers/phccodesnipperpro/application_controller.rb
phccodesnipperpro-1.0.0 app/controllers/phccodesnipperpro/application_controller.rb