Class: Twelvefactor::Environment::Mailer::File

Inherits:
Object
  • Object
show all
Defined in:
lib/twelvefactor/environment/mailer/file.rb

Class Method Summary collapse

Class Method Details

.apply(app, mailer_url) ⇒ Object



3
4
5
6
7
# File 'lib/twelvefactor/environment/mailer/file.rb', line 3

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

.file_settings(url) ⇒ Object



9
10
11
12
13
# File 'lib/twelvefactor/environment/mailer/file.rb', line 9

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