correctif(safe_mailer): fix bug sur de la synthax
This commit is contained in:
parent
72e31d4d90
commit
822eda7c42
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ class SafeMailer < ApplicationRecord
|
|||
raise if SafeMailer.count == 1
|
||||
end
|
||||
|
||||
enum forced_delivery_method: Rails.application.config.action_mailer&.balancer_settings&.keys&.map(&:to_s) || []
|
||||
enum forced_delivery_method: (Rails.application.config.action_mailer&.balancer_settings&.keys || []).to_h { |k| [k.to_sym, k.to_s] }
|
||||
|
||||
def self.forced_delivery_method
|
||||
first&.forced_delivery_method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue