soft_deleter 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02c66d881295059cfb19ec7d833998bfbedc484df9896749fa74fe4187e63a60
4
- data.tar.gz: e3ab5dc4fcb07a1aa23dd1e3a1616792ccefeb7d02a15fcb08861f3d4e6a34e4
3
+ metadata.gz: 51d9919bd61a3fdd0bf41ba052ba53f2b5a3e4efb8311df7894bd5d2f8ce470a
4
+ data.tar.gz: 125779c3092f28dfc97c9fe6f456b857f1f808b17fc784f62e77a3cf13f345fd
5
5
  SHA512:
6
- metadata.gz: bd0a840fec5163ea10e321213c765b2c4b60b8bf39d12642f655605114ced698d2c58f41fbeddaee4b1d7f201ab4abfcedeaedc1e77e103e26154d165087d7aa
7
- data.tar.gz: 5f5b88167282c363afe6d5e927128913c56037f3ea48752794e43ec0966a53b609e35c6acd31b9b9895d15bb15d1eb0919563f5b7efca0cf883b30abedc05217
6
+ metadata.gz: 9f522fcba70a80bad8b40c48ab2705204518529053a72b6fd3bdbace9a5c15c00d7bdc2739b9e478e7d5a77ca5ad4b66b9b9baaa37c9daa67253990328165c80
7
+ data.tar.gz: dbd75a768e52861f15def16d6edc6043e993bb9f4b877899ae4da7e2e940982abff6701c665d35799d3699ea39738bccf36fee34ce0baab471e462585701b3b0
data/README.md CHANGED
@@ -132,10 +132,11 @@ class Book < ApplicationRecord
132
132
  belongs_to :user
133
133
  has_many_attached :images
134
134
 
135
- exclude_dependent :images_attachments
135
+ exclude_dependent :images_attachments # this line
136
136
  end
137
137
  ```
138
- `exclude_dependent` accepts array of symbols as arguments.
138
+ `exclude_dependent` accepts array of symbols as arguments.<br />
139
+ You need to add suffix `_attachment` or `_attachments` depending on where you use has_one_attached or has_many_attached.
139
140
 
140
141
  Otherwise, you can use `suffix` option as below.
141
142
  ```ruby
@@ -152,12 +153,9 @@ class Book < ApplicationRecord
152
153
  belongs_to :user
153
154
  has_many_attached :images
154
155
 
155
- exclude_dependent :images, suffix: :attachments
156
+ exclude_dependent :images, suffix: :attachments # this line
156
157
  end
157
158
  ```
158
159
 
159
- ## Contributing
160
- Contribution directions go here.
161
-
162
160
  ## License
163
161
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,3 +1,3 @@
1
1
  module SoftDeleter
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soft_deleter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - testCodeV01
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-14 00:00:00.000000000 Z
11
+ date: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,7 +17,7 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 7.0.7
20
- type: :runtime
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements: