diff options
Diffstat (limited to 'app/workers/mail_scheduler/notification_service_worker.rb')
-rw-r--r-- | app/workers/mail_scheduler/notification_service_worker.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/workers/mail_scheduler/notification_service_worker.rb b/app/workers/mail_scheduler/notification_service_worker.rb index 12e8de4491e..8206a17021b 100644 --- a/app/workers/mail_scheduler/notification_service_worker.rb +++ b/app/workers/mail_scheduler/notification_service_worker.rb @@ -18,9 +18,7 @@ module MailScheduler def perform(meth, *args) check_arguments!(args) - if ::Feature.enabled?(:verify_mail_scheduler_notification_service_worker_method_names) && - NotificationService.permitted_actions.exclude?(meth.to_sym) - + if NotificationService.permitted_actions.exclude?(meth.to_sym) raise(ArgumentError, "#{meth} not allowed for #{self.class.name}") end |