From f57c3c3df0757d18f1c20aab75933d842ae5432b Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 3 Sep 2016 09:17:55 -0400 Subject: [PATCH] Update issue_patch.rb --- lib/issue_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/issue_patch.rb b/lib/issue_patch.rb index bbb82e2..23b83f2 100644 --- a/lib/issue_patch.rb +++ b/lib/issue_patch.rb @@ -93,7 +93,7 @@ module IssuePatch # Create a shareable link for a customer def share_link - token = DownloadToken.create(:expires_at => Time.now + 24.hours, :issue_id => id) + token = CustomerToken.create(:expires_at => Time.now + 24.hours, :issue_id => id) link_to "#{tracker} ##{id}: #{subject}", view_path + token.token end