diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-01-30 18:17:55 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-01-30 18:17:55 +0300 |
commit | 8ac227bab2334c41784c567faf7aafb1ebd75890 (patch) | |
tree | a72df2887fd528f703a42331c27eeda88a4ed65e | |
parent | c47328948b5fff218c68279260a57ab6b03e7423 (diff) |
Fix RepositoryCache backend attr_reader
-rw-r--r-- | lib/repository_cache.rb | 6 |
1 files changed, 1 insertions, 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 |