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