User get the active notion

This commit is contained in:
simon lehericey 2019-11-05 10:01:07 +01:00
parent 40af20b733
commit b193dd1465
2 changed files with 22 additions and 0 deletions

View file

@ -92,6 +92,10 @@ class User < ApplicationRecord
"User:#{id}"
end
def active?
last_sign_in_at.present?
end
private
def link_invites!