Sha256: b1aad3271cabe2678cd3c15e1343ec60fcc15671a9a7a2e6697c06d9c601385b

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

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