wire up downloading attachments from todo partial

This commit is contained in:
Reinier Balt 2014-07-06 22:29:19 +02:00
parent 2fe0425ce9
commit c49296e843
3 changed files with 9 additions and 2 deletions

View file

@ -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')