Skip to content
Snippets Groups Projects
Commit e0ac7409 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Merge pull request #8693 from tsigo/master

Fix RepositoryCache backend attr_reader
parents ff33140a 8ac227ba
No related branches found
No related tags found
No related merge requests found
# 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
Loading
Loading
@@ -18,8 +18,4 @@ class RepositoryCache
def fetch(key, &block)
backend.fetch(cache_key(key), &block)
end
private
attr_reader :backend
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment