Sha256: ca60690bc57fa1e28b9ea828485295a87be5c4b7390a870604d6cd7e227f9222

Contents?: true

Size: 229 Bytes

Versions: 1

Compression:

Stored size: 229 Bytes

Contents

module Redisrank
  module Database
    def self.included(base)
      base.extend(Database)
    end
    def db(ref = nil)
      ref ||= @options[:connection_ref] if !@options.nil?
      Redisrank.connection(ref)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redisrank-0.1.0 lib/redisrank/mixins/database.rb