Skip to content

Commit

Permalink
Release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Mar 13, 2023
1 parent 7f8992b commit 520aeaf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/bridgetown-activerecord/initializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/bridgetown-activerecord/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module BridgetownActiveRecord
VERSION = "2.1.0"
VERSION = "2.2.0"
end
2 changes: 1 addition & 1 deletion test/test_bridgetown_activerecord.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup

should "connect to the database" do
assert_includes @contents, "ActiveRecord::ConnectionAdapters::PostgreSQLAdapter"
assert_equal "#<Sequel::Postgres::Database: {:adapter=>:postgres, :extensions=>:activerecord_connection}>", DB.inspect
assert_equal "#<Sequel::Postgres::Database: {:adapter=>:postgres, :extensions=>:activerecord_connection}>", DB.inspect # rubocop:disable Layout/LineLength
end
end
end

0 comments on commit 520aeaf

Please sign in to comment.