Sha256: e4bc531ea5319aa5012d5cc6ca0f660e3a5ff0acba1486570e7a3bca1c508dbf

Contents?: true

Size: 227 Bytes

Versions: 2

Compression:

Stored size: 227 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redistat-0.5.0 lib/redistat/mixins/database.rb
redistat-0.4.0 lib/redistat/mixins/database.rb