app/views/user_mailer/confirmation_instructions.html.erb in instedd-rails-0.0.24 vs app/views/user_mailer/confirmation_instructions.html.erb in instedd-rails-0.0.25
- old
+ new
@@ -3,6 +3,6 @@
<% end %>
<%= h2 do %>
<%= t("to_verify_your_account_and_complete_the_registration_process_please_click_in_the_link_below_or_copy_paste_the_url_into_your_browser", :default => "To verify your account and complete the registration process please click in the link below or copy paste the URL into your browser") %>
<% end %>
<br/>
-<%= advertised_link t("confirm_my_account", default:'Confirm my account'), confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %>
+<%= advertised_link t("confirm_my_account", default:'Confirm my account'), confirmation_url(@resource, :confirmation_token => (Gem.loaded_specs["devise"].version.version >= "3.0.0" ? @token : @resource.confirmation_token)) %>