stubs/hotwire/app/controllers/profile_controller.rb in kaze-0.8.0 vs stubs/hotwire/app/controllers/profile_controller.rb in kaze-0.9.0

- old
+ new

@@ -6,20 +6,20 @@ render 'profile/edit' end def update - @update_profile_information_form = UpdateProfileInformationForm.new params.permit(:name, :email) + @update_profile_information_form = UpdateProfileInformationForm.new(params.permit(:name, :email)) return render partial: 'profile/partials/update_profile_information_form', status: :unprocessable_entity if @update_profile_information_form.invalid? Current.auth.user.update(name: @update_profile_information_form.name, email: @update_profile_information_form.email) redirect_to profile_edit_path, flash: { status: 'profile-updated' } end def destroy - @delete_user_form = DeleteUserForm.new params.permit(:password) + @delete_user_form = DeleteUserForm.new(params.permit(:password)) return render partial: 'profile/partials/delete_user_form', status: :unprocessable_entity if @delete_user_form.invalid? user = Current.auth.user