diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e79484..bb8c614 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [2.2.0] - 2023-03-13 + +- Add support for Sequel with shared DB connection + ## [2.1.0] - 2022-10-10 - Allow customizing of the models dir diff --git a/lib/bridgetown-activerecord/initializer.rb b/lib/bridgetown-activerecord/initializer.rb index e1bf42b..1252fe5 100644 --- a/lib/bridgetown-activerecord/initializer.rb +++ b/lib/bridgetown-activerecord/initializer.rb @@ -29,5 +29,5 @@ def self.log_writer next unless sequel_support require "sequel" - DB = Sequel.send(sequel_support, extensions: :activerecord_connection) + DB = Sequel.send(sequel_support, extensions: :activerecord_connection) # rubocop:disable Lint/ConstantDefinitionInBlock end diff --git a/lib/bridgetown-activerecord/version.rb b/lib/bridgetown-activerecord/version.rb index 2823fe7..bde062c 100644 --- a/lib/bridgetown-activerecord/version.rb +++ b/lib/bridgetown-activerecord/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module BridgetownActiveRecord - VERSION = "2.1.0" + VERSION = "2.2.0" end diff --git a/test/test_bridgetown_activerecord.rb b/test/test_bridgetown_activerecord.rb index 05545b7..f73d856 100644 --- a/test/test_bridgetown_activerecord.rb +++ b/test/test_bridgetown_activerecord.rb @@ -28,7 +28,7 @@ def setup should "connect to the database" do assert_includes @contents, "ActiveRecord::ConnectionAdapters::PostgreSQLAdapter" - assert_equal "#:postgres, :extensions=>:activerecord_connection}>", DB.inspect + assert_equal "#:postgres, :extensions=>:activerecord_connection}>", DB.inspect # rubocop:disable Layout/LineLength end end end