Sha256: 4084010544d40483dcdf98d46b9b0862e32a7c836c5d92f6ac30fd2e8d40f7aa
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
require "gem_ext/redis" require "cached_record/version" require "cached_record/cache" require "cached_record/orm" module CachedRecord def self.setup(*args) args.each do |arg| if arg.is_a?(Hash) arg.each do |store, options| Cache.setup store, options end else Cache.setup arg end end ORM::ActiveRecord.setup ORM::DataMapper.setup end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cached_record-0.1.1 | lib/cached_record.rb |
cached_record-0.1.0 | lib/cached_record.rb |