add encrypted user configs controller

This commit is contained in:
Pete Matsyburka
2024-02-12 12:26:22 +02:00
parent 95f734e4b8
commit 3f506f53b4
2 changed files with 12 additions and 0 deletions
@@ -0,0 +1,11 @@
# frozen_string_literal: true
class EncryptedUserConfigsController < ApplicationController
load_and_authorize_resource :encrypted_user_config
def destroy
@encrypted_user_config.destroy!
redirect_back(fallback_location: root_path)
end
end