app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-82.0.0 vs app/controllers/phcmemberspro/member/profiles_controller.rb in phcmemberspro-82.1.0
- old
+ new
@@ -2,11 +2,10 @@
module Phcmemberspro
class Member::ProfilesController < ApplicationController
# Security, Layouts & Action Filters
- skip_before_action :phcmemberspro_get_member_profile_info
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 ]
@@ -37,22 +36,22 @@
@member_profile = Member::Profile.new(member_profile_params)
@member_profile.user_id = current_user.id
@member_profile.org_id = current_user.org_id
if @member_profile.save
redirect_to member_profiles_url, notice: 'Profile was successfully created.'
- else
- render :new
+ else
+ render :new
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
+ else
+ render :edit
end
end
# DELETE - Member Profile
def destroy