Read about our upcoming Code of Conduct on this issue

Commit 8ac227ba authored by Robert Speicher's avatar Robert Speicher
Browse files

Fix RepositoryCache backend attr_reader

parent efc34e8bde2e
# 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 @@ def expire(key)
def fetch(key, &block)
backend.fetch(cache_key(key), &block)
end
private
attr_reader :backend
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment