summaryrefslogtreecommitdiff
path: root/app/models/upload.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/upload.rb')
-rw-r--r--app/models/upload.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/upload.rb b/app/models/upload.rb
index 20860f14b83..d83a5b31659 100644
--- a/app/models/upload.rb
+++ b/app/models/upload.rb
@@ -31,7 +31,7 @@ class Upload < ActiveRecord::Base
def begin_fast_destroy
{
Uploads::Local => Uploads::Local.new.keys(with_files_stored_locally),
- Uploads::Fog => Uploads::Fog.new.keys(with_files_stored_remotely)
+ Uploads::Fog => Uploads::Fog.new.keys(with_files_stored_remotely),
}
end
@@ -71,10 +71,10 @@ class Upload < ActiveRecord::Base
# Help sysadmins find missing upload files
if persisted? && !exist
if Gitlab::Sentry.enabled?
- Raven.capture_message("Upload file does not exist", extra: self.attributes)
+ Raven.capture_message("Upload file does not exist", extra: attributes)
end
- Gitlab::Metrics.counter(:upload_file_does_not_exist_total, 'The number of times an upload record could not find its file').increment
+ Gitlab::Metrics.counter(:upload_file_does_not_exist_total, "The number of times an upload record could not find its file").increment
end
exist
@@ -83,7 +83,7 @@ class Upload < ActiveRecord::Base
def uploader_context
{
identifier: identifier,
- secret: secret
+ secret: secret,
}.compact
end
@@ -110,7 +110,7 @@ class Upload < ActiveRecord::Base
end
def relative_path?
- !path.start_with?('/')
+ !path.start_with?("/")
end
def uploader_class