Sha256: 1d7429ff9a6988d3b2ffb23b0429f945f30a1367f5510f879b29378f91068482
Contents?: true
Size: 429 Bytes
Versions: 1
Compression:
Stored size: 429 Bytes
Contents
begin require "fakeredis" rescue LoadError require "redis" end require "active_orm/redis/base" require "active_orm/redis/configuration" class ActiveOrm::Redis < ActiveOrm::Base extend Base attr_accessor :client def initialize(client=nil) @client ||= (client.nil? ? ActiveOrm::Redis.configuration.client : client) end def self.client(client=nil) client.nil? ? new.client : new(client).client end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_orm-3.0.0 | lib/active_orm/redis.rb |