Getter convenience method for tokens

This commit is contained in:
2022-03-12 00:01:40 -05:00
parent 0485e9d64c
commit 5d928c486f
2 changed files with 19 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ module IssuePatch
# Create a shareable link for a customer
def share_token
CustomerToken.create(:expires_at => Time.now + 1.month, :issue_id => id)
CustomerToken.get_token self
end
end