Sha256: d7a87d3f2dc61fa81fff00effa9c734a255ec3e35069bcafa01570ad7fc68ce2

Contents?: true

Size: 717 Bytes

Versions: 54

Compression:

Stored size: 717 Bytes

Contents

module Phcmemberspro
  class ApplicationController < ActionController::Base

    # Action Filters
    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

54 entries across 54 versions & 1 rubygems

Version Path
phcmemberspro-74.1.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-74.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-73.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-72.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-71.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-70.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-69.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-68.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-67.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-66.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-65.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-64.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-63.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-62.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-61.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-60.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-59.0.1 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-59.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-58.0.0 app/controllers/phcmemberspro/application_controller.rb
phcmemberspro-57.0.0 app/controllers/phcmemberspro/application_controller.rb