mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 02:44:22 +01:00
wire up downloading attachments from todo partial
This commit is contained in:
parent
2fe0425ce9
commit
c49296e843
3 changed files with 9 additions and 2 deletions
|
|
@ -819,7 +819,7 @@ class TodosController < ApplicationController
|
|||
filename = params[:filename]
|
||||
attachment = current_user.attachments.find(id)
|
||||
|
||||
if attachment
|
||||
if attachment
|
||||
send_file(attachment.file.path,
|
||||
disposition: 'attachment',
|
||||
type: 'message/rfc822')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue