Skip to content

Commit 142d01a

Browse files
authored
Merge pull request #55 from blocknotes/mat/bump-to-1.4.0
chore: Bump to version 1.4.0
2 parents 279d634 + 4c3a021 commit 142d01a

15 files changed

Lines changed: 16 additions & 29 deletions

.github/workflows/specs_postgres_71.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,6 @@ jobs:
5757
- name: Run tests
5858
run: bundle exec rspec --profile
5959

60-
- name: Code Climate test coverage
61-
uses: paambaati/codeclimate-action@v9
62-
env:
63-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
64-
with:
65-
coverageLocations: |
66-
${{github.workspace}}/coverage/lcov/active_storage_db.lcov:lcov
67-
6860
# - name: Upload coverage results
6961
# uses: actions/upload-artifact@main
7062
# if: always()

.github/workflows/specs_sqlite_72.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ jobs:
4040
- name: Run tests
4141
run: bundle exec rspec --profile
4242

43-
- name: Code Climate test coverage
44-
uses: paambaati/codeclimate-action@v3.0.0
45-
env:
46-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
47-
with:
48-
coverageLocations: |
49-
${{github.workspace}}/coverage/lcov/active_storage_db.lcov:lcov
50-
5143
# - name: Upload coverage results
5244
# uses: actions/upload-artifact@main
5345
# if: always()

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ attachments:
4444
# other connection details ...
4545
```
4646

47-
2. Extend the ActiveStorage base record class providing the `connects_to` options, e.g `app/overrides/models/active_storage_db/application_record_override.rb` (or add an initializer for _ActiveStorageDB_):
47+
2. Extend the ActiveStorage base record class providing the `connects_to` options (updating _config/application.rb_ / using an initializer for _ActiveStorageDB_ / overriding the base model like in the [Rails guide](https://guides.rubyonrails.org/engines.html#overriding-models-and-controllers)):
4848

4949
```rb
50+
# e.g. app/overrides/models/active_storage_db/application_record_override.rb
5051
ActiveStorageDB::ApplicationRecord.class_eval do
5152
connects_to database: { reading: :attachments, writing: :attachments }
5253
end

gemfiles/rails_6_1_mssql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_1_mysql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_1_postgres.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_6_1_sqlite.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_7_0_mssql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_7_1_mysql.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

gemfiles/rails_7_1_postgres.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
active_storage_db (1.3.1)
4+
active_storage_db (1.4.0)
55
activestorage (>= 6.0)
66
rails (>= 6.0)
77

0 commit comments

Comments
 (0)