summaryrefslogtreecommitdiff
path: root/lib/repository_cache.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-01-30 10:17:55 -0500
committerRobert Speicher <rspeicher@gmail.com>2015-01-30 10:17:55 -0500
commit8ac227bab2334c41784c567faf7aafb1ebd75890 (patch)
treea72df2887fd528f703a42331c27eeda88a4ed65e /lib/repository_cache.rb
parentc47328948b5fff218c68279260a57ab6b03e7423 (diff)
downloadgitlab-ce-8ac227bab2334c41784c567faf7aafb1ebd75890.tar.gz
Fix RepositoryCache backend attr_reader
Diffstat (limited to 'lib/repository_cache.rb')
-rw-r--r--lib/repository_cache.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/repository_cache.rb b/lib/repository_cache.rb
index 0d52f50be91..fa016a170cd 100644
--- a/lib/repository_cache.rb
+++ b/lib/repository_cache.rb
@@ -1,6 +1,6 @@
# Interface to the Redis-backed cache store used by the Repository model
class RepositoryCache
- attr_reader :namespace
+ attr_reader :namespace, :backend
def initialize(namespace, backend = Rails.cache)
@namespace = namespace
@@ -18,8 +18,4 @@ class RepositoryCache
def fetch(key, &block)
backend.fetch(cache_key(key), &block)
end
-
- private
-
- attr_reader :backend
end