From 83677454337b6201c42b7fcb858e41f5822ae893 Mon Sep 17 00:00:00 2001 From: Michael Gall Date: Thu, 5 Apr 2012 12:25:43 +1000 Subject: [PATCH] Ruby 1.9.3 compatibility fix --- app/controllers/spree/digitals_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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