app/views/devise/mailer/invitation_instructions.html.erb in devise_invitable-1.2.1 vs app/views/devise/mailer/invitation_instructions.html.erb in devise_invitable-1.3.0
- old
+ new
@@ -1,8 +1,8 @@
<p>Hello <%= @resource.email %>!</p>
<p>Someone has invited you to <%= root_url %>, you can accept it through the link below.</p>
-<p><%= link_to 'Accept invitation', accept_invitation_url(@resource, :invitation_token => @resource.invitation_token) %></p>
+<p><%= link_to 'Accept invitation', accept_invitation_url(@resource, :invitation_token => @token) %></p>
<p>If you don't want to accept the invitation, please ignore this email.<br />
Your account won't be created until you access the link above and set your password.</p>