Skip to content
Snippets Groups Projects
Unverified Commit 4b2fcafe authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 7e33bf89
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ module User::WithAvatar
def do_update_picture
begin
downloaded_image = open(picture_url)
downloaded_image = URI.parse(picture_url).open
content_type = downloaded_image.content_type
extension = content_type.split('/').last
self.picture.attach(io: downloaded_image, filename: "avatar.#{extension}")
......
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