From 8ac227bab2334c41784c567faf7aafb1ebd75890 Mon Sep 17 00:00:00 2001
From: Robert Speicher <rspeicher@gmail.com>
Date: Fri, 30 Jan 2015 10:17:55 -0500
Subject: [PATCH] Fix RepositoryCache backend attr_reader

---
 lib/repository_cache.rb | 6 +-----
 1 file changed, 1 insertion(+), 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
-- 
GitLab