lib/wcc/contentful/store/postgres_store.rb in wcc-contentful-1.3.2 vs lib/wcc/contentful/store/postgres_store.rb in wcc-contentful-1.4.0.rc1

- old
+ new

@@ -15,12 +15,12 @@ delegate :each, to: :to_enum attr_reader :connection_pool attr_accessor :logger - def initialize(_config = nil, connection_options = nil, pool_options = nil) - super() + def initialize(configuration = nil, connection_options = nil, pool_options = nil) + super(configuration) @schema_ensured = false connection_options ||= { dbname: 'postgres' } pool_options ||= {} @connection_pool = PostgresStore.build_connection_pool(connection_options, pool_options) @dirty = Concurrent::AtomicBoolean.new @@ -98,10 +98,11 @@ def find_all(content_type:, options: nil) Query.new( self, content_type: content_type, - options: options + options: options, + configuration: @configuration ) end def exec_query(statement, params = []) if @dirty.true?