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 +4 -4
- data/README.md +4 -6
- data/lib/soft_deleter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51d9919bd61a3fdd0bf41ba052ba53f2b5a3e4efb8311df7894bd5d2f8ce470a
|
4
|
+
data.tar.gz: 125779c3092f28dfc97c9fe6f456b857f1f808b17fc784f62e77a3cf13f345fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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).
|
data/lib/soft_deleter/version.rb
CHANGED
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.
|
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-
|
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: :
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|