From bde29ef9d0a4355dbe0b920f6a64a98d50b0e2d5 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 5 Sep 2016 19:54:13 -0400 Subject: [PATCH] Update issue_patch.rb --- lib/issue_patch.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/issue_patch.rb b/lib/issue_patch.rb index 6d6e768..19bc00a 100644 --- a/lib/issue_patch.rb +++ b/lib/issue_patch.rb @@ -92,9 +92,8 @@ module IssuePatch end # Create a shareable link for a customer - def share_link - token = CustomerToken.create(:expires_at => Time.now + 24.hours, :issue_id => id) - return "#{Redmine::Utils::relative_url_root}/customers/view/#{token.token }" + def share_token + CustomerToken.create(:expires_at => Time.now + 24.hours, :issue_id => id) end end