app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-82.3.1 vs app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-82.4.0

- old
+ new

@@ -1,11 +1,12 @@ require_dependency "phcmemberspro/application_controller" module Phcmemberspro class Member::ProfilesController < ApplicationController - # Security, Layouts & Action Filters + # Include Core Helpers, Security & Action Filters + include Phccorehelpers::PhcpluginsproHelper before_action :authenticate_user! before_action :set_paper_trail_whodunnit before_action :set_member_profile, only: [:show, :edit, :update, :destroy] layout "phcmemberspro/application_full_width", :only => [ :show ] @@ -21,12 +22,10 @@ end # NEW FORM - Member Profile def new @member_profile = Member::Profile.new - @member_profile.user_id = current_user.id - @member_profile.org_id = current_user.org_id end # EDIT FORM - Member Profile def edit end @@ -43,11 +42,9 @@ end end # PATCH/PUT - Member Profile def update - @member_profile.user_id = current_user.id - @member_profile.org_id = current_user.org_id if @member_profile.update(member_profile_params) redirect_to member_profiles_url, notice: 'Profile was successfully updated.' else render :edit end