Sha256: 4b0b6f5cb6909033bdb2d308fc93f0dbabd01a8d51400ad8075b2619a1c780f3

Contents?: true

Size: 331 Bytes

Versions: 4

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true
class Twelvefactor::Environment::Mailer::File
  def self.apply app, mailer_url
    config = app.config
    config.action_mailer.delivery_method = :file
    config.action_mailer.file_settings = file_settings mailer_url
  end

  def self.file_settings url
    {
      location: url.path
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twelvefactor-mailer-1.0.3 lib/twelvefactor/environment/mailer/file.rb
twelvefactor-mailer-1.0.2 lib/twelvefactor/environment/mailer/file.rb
twelvefactor-mailer-1.0.1 lib/twelvefactor/environment/mailer/file.rb
twelvefactor-mailer-1.0.0 lib/twelvefactor/environment/mailer/file.rb