Commit df0a334e authored by Toon Claes's avatar Toon Claes

Ensure valid mount_point is used by AvatarUploader

Default to 'avatar' if the mount_point from the database is nil.
parent 8267ded1
......@@ -25,6 +25,10 @@ class AvatarUploader < GitlabUploader
self.class.absolute_path(upload)
end
def mounted_as
super || 'avatar'
end
private
def dynamic_segment
......
---
title: Ensure a valid mount_point is used by the AvatarUploader
merge_request: 24800
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment