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

Version Path
workarea-core-3.5.27 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.26 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.25 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.23 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.22 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.21 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.20 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.19 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.18 app/mailers/workarea/application_mailer.rb
workarea-core-3.5.17 app/mailers/workarea/application_mailer.rb