We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc5968 commit 25b38a0Copy full SHA for 25b38a0
lib/tableless/connection_adapters/dummy_adapter.rb
@@ -1,8 +1,9 @@
1
# frozen_string_literal: true
2
-require 'ostruct'
3
4
module Tableless
5
class DummyAdapter < ActiveRecord::ConnectionAdapters::AbstractAdapter
+ DbConfig = Struct.new(:adapter)
6
+
7
def initialize(*)
8
super
9
@schema_cache = Tableless::SchemaCache.new
@@ -17,7 +18,7 @@ def get_schema_cache(*)
17
18
end
19
20
def db_config(*)
- @db_config ||= OpenStruct.new(adapter: :dummy)
21
+ @db_config ||= DbConfig.new(:dummy)
22
23
24
def with_connection(*)
0 commit comments