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