diff --git a/app/controllers/notifications_settings_controller.rb b/app/controllers/notifications_settings_controller.rb index 14139c55..1a2f97ab 100644 --- a/app/controllers/notifications_settings_controller.rb +++ b/app/controllers/notifications_settings_controller.rb @@ -35,12 +35,12 @@ class NotificationsSettingsController < ApplicationController def load_reminder_config @reminder_config = - AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::SUBMITTER_REMAILERS) + AccountConfig.find_or_initialize_by(account: current_account, key: AccountConfig::SUBMITTER_REMINDERS) end def email_config_params params.require(:account_config).permit!.tap do |attrs| - attrs[:key] = nil unless attrs[:key].in?([AccountConfig::BCC_EMAILS, AccountConfig::SUBMITTER_REMAILERS]) + attrs[:key] = nil unless attrs[:key].in?([AccountConfig::BCC_EMAILS, AccountConfig::SUBMITTER_REMINDERS]) end end end diff --git a/app/models/account_config.rb b/app/models/account_config.rb index 51b76b21..63b97b82 100644 --- a/app/models/account_config.rb +++ b/app/models/account_config.rb @@ -28,7 +28,7 @@ class AccountConfig < ApplicationRecord FORCE_MFA = 'force_mfa' ALLOW_TYPED_SIGNATURE = 'allow_typed_signature' ALLOW_TO_RESUBMIT = 'allow_to_resubmit' - SUBMITTER_REMAILERS = 'submitter_reminders' + SUBMITTER_REMINDERS = 'submitter_reminders' FORM_COMPLETED_BUTTON_KEY = 'form_completed_button' FORM_COMPLETED_MESSAGE_KEY = 'form_completed_message' FORM_WITH_CONFETTI_KEY = 'form_with_confetti'