refactor toggles form

This commit is contained in:
Pete Matsyburka
2025-11-13 09:50:26 +02:00
parent 6c73c82a27
commit 4603efc04e
4 changed files with 39 additions and 30 deletions
@@ -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?