Sha256: 81233beb63a4d4178875cfc2132abdc7bc163d27616d67350fc6a6af835a31dd

Contents?: true

Size: 716 Bytes

Versions: 2

Compression:

Stored size: 716 Bytes

Contents

module Phcmemberspro
  class ApplicationController < ActionController::Base

    # Action Filter
    before_action :phcmemberspro_get_member_profile_info

    # 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

    # Grab Member Information
    def phcmemberspro_get_member_profile_info
      @members_profile_info = Member::Profile.find(params[:profile_id])
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcmemberspro-36.1.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-36.0.0 app/controllers/phcmemberspro/application_controller.rb