Sha256: 91059bcb984f9a92cb9a1e7cb90a32c0558c311b2bd486f22d34bc41dbd4e852
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_orm-2.4.0 | lib/active_orm/redis.rb |
active_orm-2.3.0 | lib/active_orm/redis.rb |