mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
11 lines
226 B
Ruby
11 lines
226 B
Ruby
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 |