lib/nitro/caching/fragments.rb in nitro-0.30.0 vs lib/nitro/caching/fragments.rb in nitro-0.31.0

- old
+ new

@@ -1,9 +1,8 @@ require 'fileutils' require 'glue/configuration' -require 'glue/attribute' require 'glue/cache/memory' module Nitro # Adds support for caching. @@ -18,14 +17,14 @@ # The cache used to store the fragments. setting :cache, :default => Glue::MemoryCache.new, :doc => 'The cache used to store the fragments' def self.get(name, options = {}) - return @@cache.get(name, options) + return self.cache.get(name, options) end def self.put(name, content = nil, options = {}) - @@cache.put(name, content, options) + self.cache.put(name, content, options) return content end private