From c854fe21032dd419dafcc00eec94e468823bd139 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Tue, 12 Jun 2018 01:27:06 +0800 Subject: Unify from EE for app/uploaders/object_storage.rb --- app/uploaders/object_storage.rb | 4 ++-- 1 file 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) -- cgit v1.2.1