Sha256: 75c666c338d6aba0e77043d642de194871c447e28d54439dccd20edf339c9ac4

Contents?: true

Size: 226 Bytes

Versions: 5

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

class DatabaseAdapter
  def initialize(opts = {})
    @database = opts[:database]
  end

  def establish_connection!
    ActiveRecord::Base.establish_connection(database_configuration)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord_json_validator-2.1.1 spec/support/macros/database/database_adapter.rb
activerecord_json_validator-2.1.0 spec/support/macros/database/database_adapter.rb
activerecord_json_validator-2.0.1 spec/support/macros/database/database_adapter.rb
activerecord_json_validator-2.0.0 spec/support/macros/database/database_adapter.rb
activerecord_json_validator-1.3.0 spec/support/macros/database/database_adapter.rb