Sha256: fa6367b99f44c1da362a475b4307c78e00cd9081ca19f6807157f6f1eee78282
Contents?: true
Size: 582 Bytes
Versions: 10
Compression:
Stored size: 582 Bytes
Contents
module Workarea class ApplicationMailer < ActionMailer::Base include I18n::DefaultUrlOptions add_template_helper Workarea::PluginsHelper add_template_helper Workarea::ApplicationHelper add_template_helper Workarea::SchemaOrgHelper 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
10 entries across 10 versions & 1 rubygems