app/controllers/phcmembers/application_controller.rb in phcmembers-25.0.0 vs app/controllers/phcmembers/application_controller.rb in phcmembers-26.0.0
- old
+ new
@@ -1,17 +1,22 @@
module Phcmembers
class ApplicationController < ActionController::Base
+ # Action Filter
+ before_action :phcmembers_get_member_profile_info
+
# Security Filters
protect_from_forgery with: :exception
- # Grab Member Information
- def get_member_profile_info
- @members_profile_info = Member::Profile.find(params[:profile_id])
- end
-
# Load Helpers
helper Phctitleseo::Engine.helpers
helper Phcnotifi::Engine.helpers
+
+ private
+
+ # Grab Member Information
+ def phcmembers_get_member_profile_info
+ @members_profile_info = Member::Profile.find(params[:profile_id])
+ end
end
end