Skip to content

Commit

Permalink
Change .url method to .path method and everything works (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMoeri authored May 3, 2024
1 parent be32317 commit 16297eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/people/picture_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class PictureController < CrudController
self.permitted_attrs = %i[picture]

def show
picture_url = person.picture.file.nil? ? default_avatar_path : person.picture.url
picture_url = person.picture.file.nil? ? default_avatar_path : person.picture.path
send_file(picture_url, disposition: 'inline')
end

Expand Down

0 comments on commit 16297eb

Please sign in to comment.