Sha256: 6dd34872867f1aa0825a88e98913c7bb2b46c65aa8cd5c2a5de3e6f6257c4393
Contents?: true
Size: 532 Bytes
Versions: 8
Compression:
Stored size: 532 Bytes
Contents
module Workarea class ApplicationMailer < ActionMailer::Base include I18n::DefaultUrlOptions add_template_helper Workarea::PluginsHelper add_template_helper Workarea::ApplicationHelper default from: -> (*) { Workarea.config.email_from } def default_url_options(options = {}) # super isn't returning the configured options, so manually merge them in super .merge(Rails.application.config.action_mailer.default_url_options.to_h) .merge(host: Workarea.config.host) end end end
Version data entries
8 entries across 8 versions & 1 rubygems