Merge branch 'funkensturm/master' into spree-1.0
* funkensturm/master: Ruby 1.9.3 compatibility fix
This commit is contained in:
@@ -8,7 +8,7 @@ module Spree
|
|||||||
if link.present? and link.digital.attachment.present?
|
if link.present? and link.digital.attachment.present?
|
||||||
attachment = link.digital.attachment
|
attachment = link.digital.attachment
|
||||||
if link.authorize! and File.file?(attachment.path)
|
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
|
||||||
end
|
end
|
||||||
render :unauthorized
|
render :unauthorized
|
||||||
|
|||||||
Reference in New Issue
Block a user