提交 8ac227ba 编写于 作者: R Robert Speicher

Fix RepositoryCache backend attr_reader

上级 c4732894
# Interface to the Redis-backed cache store used by the Repository model # Interface to the Redis-backed cache store used by the Repository model
class RepositoryCache class RepositoryCache
attr_reader :namespace attr_reader :namespace, :backend
def initialize(namespace, backend = Rails.cache) def initialize(namespace, backend = Rails.cache)
@namespace = namespace @namespace = namespace
...@@ -18,8 +18,4 @@ class RepositoryCache ...@@ -18,8 +18,4 @@ class RepositoryCache
def fetch(key, &block) def fetch(key, &block)
backend.fetch(cache_key(key), &block) backend.fetch(cache_key(key), &block)
end end
private
attr_reader :backend
end end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册