mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 05:02:50 +08:00
fix open method
This commit is contained in:
parent
d200e355ed
commit
3cd7e6fdde
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue