diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 00:42:11 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-06-13 01:37:12 +0300 |
commit | 05683f313b40e1c37fbfbb04bd4d0e368dc5b39a (patch) | |
tree | 2ab5d454d1509ac68890ecf65c39fa61279ee389 /app | |
parent | 652eb0118b3cf87f96dfbaacf5802d974303e427 (diff) |
Fix filename method of GitlabUploader to return always real filename
Diffstat (limited to 'app')
-rw-r--r-- | app/uploaders/gitlab_uploader.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/uploaders/gitlab_uploader.rb b/app/uploaders/gitlab_uploader.rb index 136ec6cc6af..0da7a025591 100644 --- a/app/uploaders/gitlab_uploader.rb +++ b/app/uploaders/gitlab_uploader.rb @@ -61,6 +61,10 @@ class GitlabUploader < CarrierWave::Uploader::Base CarrierWave.tmp_path end + def filename + super || file&.filename + end + private # To prevent files from moving across filesystems, override the default |