Sha256: c319dfc84a222b0738eed9351f94887ccf3541c062fdceeabdca9fd51f3973ea

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

module PolicyManager
  class ApplicationMailer < ActionMailer::Base
    default from: Config.from_email
    layout 'mailer'

    # configurable mailer helpers
    Config.exporter.mail_helpers.each do |helpers|
      add_template_helper(helpers)
    end

    def send!(opts = {})

      I18n.locale = Config.user_language(@user)

      default_opts = {
        :to => @user.email, 
        :subject => @subject
      }.merge(opts)

      mail(default_opts)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gdpr_rails-0.2.0 app/mailers/policy_manager/application_mailer.rb