Compare commits
No commits in common. "4496deeef599dd7c5192919efae06a6a7e1b0e4d" and "de87b6c46b36a43080a239f7ae9122829eb1c1c8" have entirely different histories.
4496deeef5
...
de87b6c46b
@ -3,16 +3,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ApplicationMailer < ActionMailer::Base
|
class ApplicationMailer < ActionMailer::Base
|
||||||
class << self
|
default from: 'from@example.com'
|
||||||
private
|
|
||||||
|
|
||||||
def default_from
|
|
||||||
File.read('/run/secrets/smtp_user_name').strip
|
|
||||||
rescue Errno::ENOENT
|
|
||||||
'development@example.com'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
default from: default_from
|
|
||||||
layout 'mailer'
|
layout 'mailer'
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user