Ver Código Fonte

Prevent crash in email

Maarten van den Berg 7 anos atrás
pai
commit
63c30e0da4

+ 1 - 1
app/views/authentication_mailer/password_confirm_email.text.erb

@@ -4,6 +4,6 @@
4 4
 
5 5
 <%= confirm_url(token: @token.token) %>
6 6
 
7
-<%= t 'authentication.emails.link_expires', expires: l(@token.expires, :long) %>
7
+<%= t 'authentication.emails.link_expires', expires: l(@token.expires, format: :long) %>
8 8
 
9 9
 <%= t 'authentication.emails.ending' %>

+ 1 - 1
app/views/authentication_mailer/password_reset_email.text.erb

@@ -4,7 +4,7 @@
4 4
 
5 5
 <%= reset_password_url(token: @token.token) %>
6 6
 
7
-<%= t 'authentication.emails.link_expires', expires: l(@token.expires, :long) %>
7
+<%= t 'authentication.emails.link_expires', expires: l(@token.expires, format: :long) %>
8 8
 <%= t 'authentication.emails.forgot.ignore_if_not_you' %>
9 9
 
10 10
 <%= t 'authentication.emails.ending' %>