fix open method

This commit is contained in:
Zmago Devetak 2017-11-24 15:19:58 +01:00 committed by GitHub
parent d200e355ed
commit 3cd7e6fdde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ class TinyMceAsset < ActiveRecord::Base
if image.is_stored_on_s3?
Kernel.open(presigned_url, 'rb')
else
File.open(file.path, 'rb')
File.open(image.path, 'rb')
end
end