Fix RepositoryCache backend attr_reader

This commit is contained in:
Robert Speicher 2015-01-30 10:17:55 -05:00
parent c47328948b
commit 8ac227bab2
1 changed files with 1 additions and 5 deletions

View File

@ -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