Remove tempfile created by minimagick.
This commit is contained in:
parent
f5796fa8c1
commit
8467fd9e51
|
@ -760,6 +760,7 @@ class AnnouncementsController < ApplicationController
|
|||
if image[:height]
|
||||
metas << {"property" => "og:image:height", "content" => image[:height].to_s}
|
||||
end
|
||||
image.destroy! # Remove the tempfile
|
||||
end
|
||||
end
|
||||
OrbitHelper.render_meta_tags(metas)
|
||||
|
|
|
@ -416,6 +416,7 @@ class Bulletin
|
|||
if image
|
||||
a["image"]["width"] = image[:width]
|
||||
a["image"]["height"] = image[:height]
|
||||
image.destroy! # Remove the tempfile
|
||||
end
|
||||
end
|
||||
a["tags"] = []
|
||||
|
|
Loading…
Reference in New Issue