app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-83.0.0 vs app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-84.0.0
- old
+ new
@@ -38,21 +38,21 @@
@profile = Member::Profile.find(params[:profile_id])
@member_address = @profile.addresses.create(member_address_params)
@member_address.user_id = current_user.id
@member_address.org_id = current_user.org_id
if @member_address.save
- redirect_to member_profile_addresses_url, notice: 'Listing was successfully created.'
+ redirect_to member_profile_addresses_url, notice: 'Address was successfully created.'
else
render :new
end
end
# PATCH/PUT - Directory Listings
def update
@profile = Member::Profile.find(params[:profile_id])
if @member_address.update(member_address_params)
- redirect_to member_profile_addresses_url, notice: 'Listing was successfully updated.'
+ redirect_to member_profile_addresses_url, notice: 'Address was successfully updated.'
else
render :edit
end
end
@@ -71,10 +71,10 @@
@member_address = Member::Address.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, :slug, :user_id, :org_id)
+ params.require(:member_address).permit(:address_addressl1, :address_addressl2, :address_city, :address_province, :address_country, :address_postalcode, :address_type, :user_name, :profile_id, :slug, :user_id, :org_id)
end
end
end