From 0c4615e33741f39a6dd1bfdefbcedc3cd2189af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sun, 13 Jan 2013 09:53:15 +0100 Subject: [PATCH] Properly check if reconfirmable is available --- app/views/devise/registrations/edit.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 3c1293dd..9bb26462 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -6,7 +6,7 @@
<%= f.label :email %>
<%= f.email_field :email, :autofocus => true %>
- <% if resource.class.reconfirmable && resource.unconfirmed_email.present? %> + <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>