diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 13:11:27 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-30 13:50:19 +0300 |
commit | b9f57192853d100c90b1d46491838a98d5ae4bae (patch) | |
tree | 009dca8ec0804874802c1eacd98711427482ab60 /app | |
parent | 99ee822857cf3fdf0a2ac91c0d13ea68c79e8ba8 (diff) |
Remove reduntant `move_to_store` override
Diffstat (limited to 'app')
-rw-r--r-- | app/uploaders/file_uploader.rb | 8 |
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 |