Sha256: dbde7d46be3135c0defe236805e8a3e4118b3f3de5482f4328fd7ab9f5501c9f

Contents?: true

Size: 226 Bytes

Versions: 8

Compression:

Stored size: 226 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

8 entries across 8 versions & 1 rubygems

Version Path
redistat-0.3.0 lib/redistat/mixins/database.rb
redistat-0.2.6 lib/redistat/database.rb
redistat-0.2.5 lib/redistat/database.rb
redistat-0.2.4 lib/redistat/database.rb
redistat-0.2.3 lib/redistat/database.rb
redistat-0.2.2 lib/redistat/database.rb
redistat-0.2.1 lib/redistat/database.rb
redistat-0.2.0 lib/redistat/database.rb