Sha256: 795e3721a89fc91cd390e9a47f0356ffc419a7de08bb62fe4e59606f65b3dc0b
Contents?: true
Size: 335 Bytes
Versions: 1
Compression:
Stored size: 335 Bytes
Contents
require 'mysql2' module Thebes::Sphinxql class Client < ::Mysql2::Client cattr_accessor :servers def initialize *args if !args.empty? || (!self.class.servers || self.class.servers.empty?) super *args else super self.class.servers[rand(self.class.servers.size)] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thebes-0.0.3 | lib/thebes/sphinxql/client.rb |