summaryrefslogtreecommitdiff
path: root/app/uploaders
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-05-26 14:17:46 +0200
committerMarin Jankovski <marin@gitlab.com>2014-05-26 14:17:46 +0200
commit8bec6b0bcb100b30a43fcd9c6649d1bee113b6a7 (patch)
tree6aef03a4d7da1220721a3d5d7550ac8d2212c227 /app/uploaders
parent2a8aa7429b6f489acd07c99e2e33a09c21c2ba01 (diff)
downloadgitlab-ce-8bec6b0bcb100b30a43fcd9c6649d1bee113b6a7.tar.gz
Make existing tests test something, return correct errors.
Diffstat (limited to 'app/uploaders')
-rw-r--r--app/uploaders/file_uploader.rb2
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