Sha256: 623e1c1c93a288a8b80c88a02d9b196a326ea698b845100cee7cbba2f675f57e
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
# This module is a wrapper of Rails.cache and serves as a central # point for configuring how Authz's internal Cache works depending # on the gems configuration module Authz module Cache def self.fetch(name, options = nil, &block) if Authz.cross_request_caching Rails.cache.fetch(name, options, &block) else block.call end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
authz-0.0.2 | lib/authz/cache.rb |
authz-0.0.1 | lib/authz/cache.rb |
authz-0.0.1.alpha5 | lib/authz/cache.rb |