Sha256: c0c10f78c1a836f2c8ea83d04e06d52f12e2ab395e11f9477278ff4384bb8e6c

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require 'active_support/core_ext/module/delegation'

class Combustion::Databases::Base
  def initialize(configuration)
    @configuration = configuration
  end

  def reset
    drop
    create
  end

  private

  attr_reader :configuration

  delegate :establish_connection, :connection, :to => :base

  def base
    ActiveRecord::Base
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
combustion-0.5.5 lib/combustion/databases/base.rb