Skip to content

Commit 07c1a83

Browse files
committed
Update default mailer path
1 parent 45a47ad commit 07c1a83

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/mailers/application_mailer.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1+
# frozen_string_literal: true
2+
13
class ApplicationMailer < ActionMailer::Base
2-
default from: email_address_with_name("[email protected]", "Joy of Rails")
4+
prepend_view_path "app/views/emails"
5+
6+
SUPPORT_EMAIL = "[email protected]"
7+
8+
default from: email_address_with_name(SUPPORT_EMAIL, "Joy of Rails")
39
layout "emails/mailer"
10+
11+
def support_email
12+
email_address_with_name(SUPPORT_EMAIL, "Joy of Rails")
13+
end
14+
15+
helper_method :support_email
416
end

0 commit comments

Comments
 (0)