cachetastic 3.5.1 → 3.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/lib/cachetastic/cache.rb +9 -0
- data/lib/cachetastic/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
data/lib/cachetastic/cache.rb
CHANGED
|
@@ -35,6 +35,15 @@ module Cachetastic # :nodoc:
|
|
|
35
35
|
self.instance.send(sym, *args, &block)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
def available_caches
|
|
39
|
+
@available_caches ||= []
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def inherited(klass)
|
|
43
|
+
available_caches << klass
|
|
44
|
+
super
|
|
45
|
+
end
|
|
46
|
+
|
|
38
47
|
end # class << self
|
|
39
48
|
|
|
40
49
|
# Returns an object from the cache for a given key.
|
data/lib/cachetastic/version.rb
CHANGED