FIX: show updated_at for invite sent date.

This commit is contained in:
Arpit Jalan 2019-11-26 13:22:48 +05:30
parent 941162e90e
commit 2dd47df6d1
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@
{{/if}}
{{else}}
<td>{{unbound invite.email}}</td>
<td>{{format-date invite.created_at}}</td>
<td>{{format-date invite.updated_at}}</td>
<td>
{{#if invite.expired}}
<div>{{i18n 'user.invited.expired'}}</div>

View File

@ -2,7 +2,7 @@
class InviteSerializer < ApplicationSerializer
attributes :email, :created_at, :redeemed_at, :expired, :user
attributes :email, :updated_at, :redeemed_at, :expired, :user
def include_email?
!object.redeemed?