summaryrefslogtreecommitdiff
path: root/app/models/cached_blob.rb
diff options
context:
space:
mode:
authorOswaldo Ferreira <oswaldo@gitlab.com>2018-06-06 22:01:37 -0300
committerOswaldo Ferreira <oswaldo@gitlab.com>2018-06-06 22:01:37 -0300
commit8d82db5b739c510919bfb3f89cb7b142156ba6c5 (patch)
treec1b5a047bc6c3873ee4729fa28996194c579738d /app/models/cached_blob.rb
parentc92902791f2de83d62f446076c4b8ed69ab7a57b (diff)
downloadgitlab-ce-8d82db5b739c510919bfb3f89cb7b142156ba6c5.tar.gz
Create CachedBlob class
Diffstat (limited to 'app/models/cached_blob.rb')
-rw-r--r--app/models/cached_blob.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/models/cached_blob.rb b/app/models/cached_blob.rb
new file mode 100644
index 00000000000..fa95ecc70bd
--- /dev/null
+++ b/app/models/cached_blob.rb
@@ -0,0 +1,11 @@
+class CachedBlob
+ delegate *BlobsService::CACHED_METHODS, to: :@blob_cache
+
+ def initialize(blob_cache)
+ @blob_cache = Hashie::Mash.new(blob_cache)
+ end
+
+ def load_all_data!
+ # no-op
+ end
+end