17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'app/mailers/concerns/effective_postmark_mailer.rb', line 17
def postmark_settings
tenant = if defined?(Tenant)
Tenant.current || raise("Missing tenant in effective_postmark postmark_settings")
end
api_token = EffectivePostmark.api_token.presence || begin
raise("Missing effective_postmark api_token for tenant :#{tenant}. Please see config/initializers/effective_postmark.rb") if tenant.present?
raise("Missing effective_postmark api_token. Please see config/initializers/effective_postmark.rb")
end
{ api_token: api_token }
end
|