app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-20.0.4 vs app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-20.1.0

- old
+ new

@@ -17,11 +17,11 @@ end # LISTINGS DETAILS - Directory Listings def show profile = Member::Profile.find(params[:profile_id]) - @member_address = profile.addresses.find(params[:id]) + @member_address = profile.addresses.friendly.find(params[:id]) @versions = PaperTrail::Version.where(item_id: params[:id], item_type: 'Phcmemberspro::Member::Address') end # NEW - Directory Listings def new @@ -71,15 +71,15 @@ private # Common Callbacks def set_member_address - @member_address = Member::Address.find(params[:id]) + @member_address = Member::Address.friendly.find(params[:id]) end # Whitelist def member_address_params - params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :user_id, :membership_id, :oganization_id) + params.require(:member_address).permit(:mcaddressl1, :mcaddressl2, :mccity, :mcprovince, :mccountry, :mcpostalcode, :mctype, :user_name, :profile_id, :slug, :user_id, :user_name, :membership_id, :oganization_id) end end end