diff options
author | Marin Jankovski <marin@gitlab.com> | 2014-05-26 14:17:46 +0200 |
---|---|---|
committer | Marin Jankovski <marin@gitlab.com> | 2014-05-26 14:17:46 +0200 |
commit | 8bec6b0bcb100b30a43fcd9c6649d1bee113b6a7 (patch) | |
tree | 6aef03a4d7da1220721a3d5d7550ac8d2212c227 /app/uploaders | |
parent | 2a8aa7429b6f489acd07c99e2e33a09c21c2ba01 (diff) | |
download | gitlab-ce-8bec6b0bcb100b30a43fcd9c6649d1bee113b6a7.tar.gz |
Make existing tests test something, return correct errors.
Diffstat (limited to 'app/uploaders')
-rw-r--r-- | app/uploaders/file_uploader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb index cbc9271ac14..0fa987c93f6 100644 --- a/app/uploaders/file_uploader.rb +++ b/app/uploaders/file_uploader.rb @@ -25,7 +25,7 @@ class FileUploader < CarrierWave::Uploader::Base end def store!(file) - file.original_filename = self.class.generate_filename(file) + @filename = self.class.generate_filename(file) super end |