cartodb/config/initializers/03_mailer.rb
2020-06-15 10:58:47 +08:00

6 lines
246 B
Ruby

if Cartodb.config.present? && Cartodb.config[:action_mailer].present?
Cartodb.config[:action_mailer].each do |method, value|
value = value.to_sym if method.to_s == "delivery_method"
ActionMailer::Base.send("#{method}=", value)
end
end