Need to define mailer_name in the mailer wrapper class, or devise can't find the email templates.
Also, for some reason, had to move the include of NotifierHelper to the view itself. That requires more investigation.
This commit is contained in:
parent
cad14bcdfc
commit
db6acebb6c
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
class DiasporaDeviseMailer < Devise::Mailer
|
||||
include NotifierHelper
|
||||
default :from => AppConfig[:smtp_sender_address]
|
||||
|
||||
def self.mailer_name
|
||||
"devise/mailer"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
<%- self.extend NotifierHelper -%>
|
||||
<% @invites = @resource.invitations_to_me.includes(:sender =>{:person => :profile}).where(:admin => false).all%>
|
||||
<head>
|
||||
<title><%=invite_email_title %></title>
|
||||
|
|
|
|||
Loading…
Reference in a new issue