app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-20.5.0 vs app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-20.5.1
- old
+ new
@@ -14,11 +14,11 @@
@member_profiles = Member::Profile.where(oganization_id: authrocket_membership_info.org_id)
end
# DETAILED PROFILE - Member Profile
def show
- @member_profile = Member::Profile.friendly.find(params[:id])
+ @member_profile = Member::Profile.find(params[:id])
@versions = PaperTrail::Version.where(item_id: params[:id], item_type: 'Phcmemberspro::Member::Profile')
end
# NEW FORM - Member Profile
def new
@@ -64,10 +64,10 @@
private
# Common Callbacks
def set_member_profile
- @member_profile = Member::Profile.friendly.find(params[:id])
+ @member_profile = Member::Profile.find(params[:id])
end
# Whitelist
def member_profile_params
params.require(:member_profile).permit(:id, :mfirstname, :mlastname, :mtitle, :memail, :mphone, :mnotes, :slug, :user_id, :user_name, :membership_id, :oganization_id)