650f40865e
The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
10 lines
389 B
Text
10 lines
389 B
Text
Hello, <%= @resource.name %>!
|
|
|
|
<% if @resource.try(:unconfirmed_email?) %>
|
|
We're contacting you to notify you that your email is being changed to <%= @resource.reset.unconfirmed_email %>.
|
|
<% else %>
|
|
We're contacting you to notify you that your email has been changed to <%= @resource.email %>.
|
|
<% end %>
|
|
|
|
If you did not initiate this change, please contact your administrator
|
|
immediately.
|