Module: ConfigHelper
- Defined in:
- lib/config_helper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.setup_action_mailer(config) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/config_helper.rb', line 8 def setup_action_mailer(config) config.action_mailer.preview_paths = [Rails.root.join('spec', 'mailers', 'previews')] config.action_mailer.show_previews = Rails.env.development? || FeatureFlipper.staging_email? if FeatureFlipper.send_email? config.action_mailer.delivery_method = :govdelivery_tms config.action_mailer.govdelivery_tms_settings = { auth_token: Settings.govdelivery.token, api_root: "https://#{Settings.govdelivery.server}" } end end |
Instance Method Details
#setup_action_mailer(config) ⇒ Object (private)
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/config_helper.rb', line 8 def setup_action_mailer(config) config.action_mailer.preview_paths = [Rails.root.join('spec', 'mailers', 'previews')] config.action_mailer.show_previews = Rails.env.development? || FeatureFlipper.staging_email? if FeatureFlipper.send_email? config.action_mailer.delivery_method = :govdelivery_tms config.action_mailer.govdelivery_tms_settings = { auth_token: Settings.govdelivery.token, api_root: "https://#{Settings.govdelivery.server}" } end end |