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

- old
+ new

@@ -4,20 +4,20 @@ status: session[:status] } end def update - form = UpdateProfileInformationForm.new params.permit(:name, :email) + form = UpdateProfileInformationForm.new(params.permit(:name, :email)) return redirect_to profile_edit_path, inertia: { errors: form.error_messages } if form.invalid? Current.auth.user.update(name: form.name, email: form.email) redirect_to profile_edit_path end def destroy - form = DeleteUserForm.new params.permit(:password) + form = DeleteUserForm.new(params.permit(:password)) return redirect_back_or_to profile_edit_path, inertia: { errors: form.error_messages } if form.invalid? user = Current.auth.user