Sha256: b91feac642c5f1cbda50e4f373903d2a67bade1b3b27437f9d5519f184514504
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
module Slavery class SlaveConnectionHolder < ActiveRecord::Base self.abstract_class = true class << self # for delayed activation def activate raise Error.new('Slavery.spec_key invalid!') unless ActiveRecord::Base.configurations[Slavery.spec_key] establish_connection Slavery.spec_key.to_sym end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slavery-2.0.0 | lib/slavery/slave_connection_holder.rb |