Sha256: 25b3bc2c5f292d80469cff54350ae50dd872685390e98be21c136213c345c9ce

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

require 'active_support/core_ext/module/delegation'

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

  def reset
    drop
    create

    establish_connection(:test)
  end

  private

  attr_reader :configuration

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

  def base
    ActiveRecord::Base
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
combustion-0.7.0 lib/combustion/databases/base.rb
combustion-0.6.0 lib/combustion/databases/base.rb