User get the active notion
This commit is contained in:
parent
40af20b733
commit
b193dd1465
2 changed files with 22 additions and 0 deletions
|
@ -92,6 +92,10 @@ class User < ApplicationRecord
|
|||
"User:#{id}"
|
||||
end
|
||||
|
||||
def active?
|
||||
last_sign_in_at.present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def link_invites!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue