Sha256: bc0adaae99d376bae67ca13ae63263bbc96aaa94b464050a2fe6689257c3b1c0
Contents?: true
Size: 312 Bytes
Versions: 4
Compression:
Stored size: 312 Bytes
Contents
module Seedy @@connection = nil def self.connection @@connection end def self.connection=(connection) @@connection = connection end def self.connect(host, user, pass, db) @@connection = Mysql.real_connect(host, user, pass, db) end class << self alias :connect! :connect end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
seedy-0.6.6 | lib/seedy/connection.rb |
seedy-0.6.5 | lib/seedy/connection.rb |
seedy-0.6.4 | lib/seedy/connection.rb |
seedy-0.6.3 | lib/seedy/connection.rb |