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:
Sarah Mei 2011-08-21 19:11:46 -07:00
parent cad14bcdfc
commit db6acebb6c
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
class DiasporaDeviseMailer < Devise::Mailer
include NotifierHelper
default :from => AppConfig[:smtp_sender_address]
def self.mailer_name
"devise/mailer"
end
end

View file

@ -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>