summaryrefslogtreecommitdiff
path: root/app/uploaders/object_storage.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-06-12 01:27:06 +0800
committerLin Jen-Shin <godfat@godfat.org>2018-06-12 01:27:06 +0800
commitc854fe21032dd419dafcc00eec94e468823bd139 (patch)
treea2cf35164cd4ea85a933321d403e27cf172e7725 /app/uploaders/object_storage.rb
parent87eb2b6e510af44ec905c183d9b886a46d223815 (diff)
downloadgitlab-ce-c854fe21032dd419dafcc00eec94e468823bd139.tar.gz
Unify from EE for app/uploaders/object_storage.rb
Diffstat (limited to 'app/uploaders/object_storage.rb')
-rw-r--r--app/uploaders/object_storage.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/uploaders/object_storage.rb b/app/uploaders/object_storage.rb
index 5aa1bc7227c..23b3dcf84c0 100644
--- a/app/uploaders/object_storage.rb
+++ b/app/uploaders/object_storage.rb
@@ -22,10 +22,10 @@ module ObjectStorage
module RecordsUploads
extend ActiveSupport::Concern
- def prepended(base)
+ prepended do |base|
raise "#{base} must include ObjectStorage::Concern to use extensions." unless base < Concern
- base.include(RecordsUploads::Concern)
+ base.include(::RecordsUploads::Concern)
end
def retrieve_from_store!(identifier)