Sha256: 263ed7c60dadc72e60dfad539e5dcd00cb3d0f4ec23dd26597df9339c8ce13ab

Contents?: true

Size: 306 Bytes

Versions: 5

Compression:

Stored size: 306 Bytes

Contents

module ActiveRecordSlave
  # Class to hold slave connection pool
  class Slave < ActiveRecord::Base
    # Prevent Rails from trying to create an instance of this model
    self.abstract_class = true

    # Since this is an abstract class so it has no columns
    def self.columns
      []
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_record_slave-1.6.0 lib/active_record_slave/slave.rb
active_record_slave-1.5.0 lib/active_record_slave/slave.rb
active_record_slave-1.4.0 lib/active_record_slave/slave.rb
active_record_slave-1.3.0 lib/active_record_slave/slave.rb
active_record_slave-1.2.1 lib/active_record_slave/slave.rb