summaryrefslogtreecommitdiff
path: root/app/uploaders
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-30 12:11:27 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-30 12:50:19 +0200
commitb9f57192853d100c90b1d46491838a98d5ae4bae (patch)
tree009dca8ec0804874802c1eacd98711427482ab60 /app/uploaders
parent99ee822857cf3fdf0a2ac91c0d13ea68c79e8ba8 (diff)
downloadgitlab-ce-b9f57192853d100c90b1d46491838a98d5ae4bae.tar.gz
Remove reduntant `move_to_store` override
Diffstat (limited to 'app/uploaders')
-rw-r--r--app/uploaders/file_uploader.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb
index 730153a4740..1af9e9b0edb 100644
--- a/app/uploaders/file_uploader.rb
+++ b/app/uploaders/file_uploader.rb
@@ -24,10 +24,6 @@ class FileUploader < CarrierWave::Uploader::Base
File.join(base_dir, 'tmp', @project.path_with_namespace, @secret)
end
- def self.generate_secret
- SecureRandom.hex
- end
-
def secure_url
File.join("/uploads", @secret, file.filename)
end
@@ -50,4 +46,8 @@ class FileUploader < CarrierWave::Uploader::Base
markdown: markdown
}
end
+
+ def self.generate_secret
+ SecureRandom.hex
+ end
end