Skip to content
Snippets Groups Projects
Commit c8936a3c authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 5646e11e
No related merge requests found
......@@ -8,6 +8,7 @@ module Communication::Website::WithScreenshot
def screenshot!
return if url.blank?
screenshot_url = Screenshot.capture(url)
return if screenshot_url.blank?
downloaded_image = URI.open(screenshot_url)
self.screenshot.attach io: downloaded_image,
filename: "screenshot.png"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment