diff --git a/app/controllers/spree/digitals_controller.rb b/app/controllers/spree/digitals_controller.rb index 8e9d55d..a5ddf86 100644 --- a/app/controllers/spree/digitals_controller.rb +++ b/app/controllers/spree/digitals_controller.rb @@ -8,11 +8,11 @@ module Spree if link.present? and link.digital.attachment.present? attachment = link.digital.attachment if link.authorize! and File.file?(attachment.path) - send_file attachment.path :filename => attachment.original_filename, :type => attachment.content_type and return + send_file attachment.path, :filename => attachment.original_filename, :type => attachment.content_type and return end end render :unauthorized end end -end \ No newline at end of file +end