skip protection to aws3

This commit is contained in:
Dmitriy Zaporozhets 2013-02-15 09:49:35 +02:00
parent a699ebdbcc
commit 4821aa6c25
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,6 @@
class FilesController < ApplicationController
def download
uploader = Note.find(params[:id]).attachment
uploader.retrieve_from_store!(params[:filename])
send_file uploader.file.path, disposition: 'attachment'
end
end