paper_trail-association_tracking 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b49b412d6cd431cd4310dadde716d334231225fed80e84c5d4d8696f42fcb0f
|
4
|
+
data.tar.gz: a77500b35d0f66a1840272b8efd9891ce876da341756fe47077cd1257e4f26b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dff6c0eacc9cf46bb6ed00edbed900426ac3b842b7e5046bb9511422b44d78bb88782d7ffc4c4322c40e28426ee0cc2c3c4fdcd7630f0c0ca4b294dabaa9f815
|
7
|
+
data.tar.gz: 41c42f324a608af7c22d7b442827eedf15f4d6c79e0c023eb93adc99f177076a95b84c7dc18acdf8f8a3f0d3a9726378d542d18f02b8bc92a3a18092d9e792d2
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
### Unreleased - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.2.
|
4
|
-
- Nothing yet
|
3
|
+
### Unreleased - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.2.1...master)
|
4
|
+
- Nothing yet
|
5
|
+
|
6
|
+
### v2.2.1 - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.2.0...v2.2.1)
|
7
|
+
- [PR #38](https://github.com/westonganger/paper_trail-association_tracking/pull/38) - Fix the issue where reifying has_one association with `dependent: :destroy` could destroy a live record
|
5
8
|
|
6
9
|
### v2.2.0 - [View Diff](https://github.com/westonganger/paper_trail-association_tracking/compare/v2.1.3...v2.2.0)
|
7
10
|
|
data/README.md
CHANGED
@@ -33,13 +33,6 @@ gem 'paper_trail'
|
|
33
33
|
gem 'paper_trail-association_tracking'
|
34
34
|
```
|
35
35
|
|
36
|
-
For PT v9.2 to v11.x you must use PT-AT v2
|
37
|
-
|
38
|
-
```ruby
|
39
|
-
gem 'paper_trail'#, ">=9.2.0", "< 12.0"
|
40
|
-
gem 'paper_trail-association_tracking', "<= 2.1.3"
|
41
|
-
```
|
42
|
-
|
43
36
|
Then run `rails generate paper_trail_association_tracking:install` which will do the following two things for you:
|
44
37
|
|
45
38
|
1. Create a `version_associations` table
|
@@ -56,9 +56,7 @@ module PaperTrailAssociationTracking
|
|
56
56
|
if options[:mark_for_destruction]
|
57
57
|
model.send(assoc.name).mark_for_destruction if model.send(assoc.name, true)
|
58
58
|
else
|
59
|
-
model.
|
60
|
-
model.send "#{assoc.name}=", nil
|
61
|
-
end
|
59
|
+
model.association(assoc.name).target = nil
|
62
60
|
end
|
63
61
|
end
|
64
62
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail-association_tracking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-03-
|
13
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: paper_trail
|