refactor toggles form

This commit is contained in:
Pete Matsyburka committed 2025-11-13 09:50:26 +02:00
1 parent 6c73c82a27
commit 4603efc04e
4 files changed
+39 -30

No files matched your search

@@ -26,7 +26,7 @@ class TemplatesPreferencesController < ApplicationController
authorize!(:update, @template)
config_key = params[:config_key]
preferences_to_delete = RESETTABLE_PREFERENCE_KEYS[config_key] || []
preferences_to_delete = RESETTABLE_PREFERENCE_KEYS[config_key]
return head :ok if preferences_to_delete.blank?