In Devise::Mailer#email_changed, the new email might be in the email attr. See: https://github.com/plataformatec/devise/blob/master/app/views/devise/mailer/email_changed.html.erblolsob-rspec
parent
9bdedcfa48
commit
720a45e99f
|
@ -38,7 +38,7 @@
|
||||||
%table.input{ align: 'center', cellspacing: 0, cellpadding: 0 }
|
%table.input{ align: 'center', cellspacing: 0, cellpadding: 0 }
|
||||||
%tbody
|
%tbody
|
||||||
%tr
|
%tr
|
||||||
%td= @resource.unconfirmed_email
|
%td= @resource.try(:unconfirmed_email) ? @resource.unconfirmed_email : @resource.email
|
||||||
|
|
||||||
%table.email-table{ cellspacing: 0, cellpadding: 0 }
|
%table.email-table{ cellspacing: 0, cellpadding: 0 }
|
||||||
%tbody
|
%tbody
|
||||||
|
|
|
@ -4,6 +4,6 @@
|
||||||
|
|
||||||
<%= t 'devise.mailer.email_changed.explanation' %>
|
<%= t 'devise.mailer.email_changed.explanation' %>
|
||||||
|
|
||||||
<%= @resource.unconfirmed_email %>
|
<%= @resource.try(:unconfirmed_email) ? @resource.unconfirmed_email : @resource.email %>
|
||||||
|
|
||||||
<%= t 'devise.mailer.email_changed.extra' %>
|
<%= t 'devise.mailer.email_changed.extra' %>
|
||||||
|
|
Loading…
Reference in New Issue