Update issue_patch.rb

This commit is contained in:
2016-09-03 09:15:37 -04:00
committed by GitHub
parent a75a784e8d
commit a264e707a8

View File

@@ -91,6 +91,12 @@ module IssuePatch
end
end
# Create a shareable link for a customer
def share_link
token = DownloadToken.create(:expires_at => Time.now + 24.hours, :issue_id => id)
link_to "#{tracker} ##{id}: #{subject}", view_path token.token
end
end
# Add module to Issue