diff --git a/app/models/tiny_mce_asset.rb b/app/models/tiny_mce_asset.rb index e79a99de8..06af275f1 100644 --- a/app/models/tiny_mce_asset.rb +++ b/app/models/tiny_mce_asset.rb @@ -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