make it possible to remove default signature

This commit is contained in:
Pete Matsyburka
2024-01-05 22:48:55 +02:00
parent 80a3ef9193
commit 7dc342a6f9
3 changed files with 9 additions and 2 deletions
@@ -28,6 +28,12 @@ class UserSignaturesController < ApplicationController
end
end
def destroy
@user_config.destroy
redirect_to settings_profile_index_path, notice: 'Signature has been removed'
end
private
def load_user_config