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: 9af07695b14d97e4ca838054a2764188521584545338887289e9c56f91cdb22b
4
- data.tar.gz: cb80d2ce702c4d2178cbd82c3191a3b9a81a72e7d7349447fe517b21d65e6e6b
3
+ metadata.gz: 3b49b412d6cd431cd4310dadde716d334231225fed80e84c5d4d8696f42fcb0f
4
+ data.tar.gz: a77500b35d0f66a1840272b8efd9891ce876da341756fe47077cd1257e4f26b2
5
5
  SHA512:
6
- metadata.gz: 2723be9c0afe1f2ffcdec97638ac073a7074ece8d78a67f42a8fe986fa56533e4a9d8306293cd7df1eedde7bfbee5dd3aa29990fb273db41f5dae9cc4a4b4d70
7
- data.tar.gz: 27a332d6d0a2aa9b810f2c493f9b48f4c4567b9e8ca1280a64e25206771168ad9982f99c75a6b53cfa1d20a670c2e3f395c16cf30bdab3fafa39f2d2ef2cec51
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.0...master)
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.paper_trail.appear_as_new_record do
60
- model.send "#{assoc.name}=", nil
61
- end
59
+ model.association(assoc.name).target = nil
62
60
  end
63
61
  end
64
62
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaperTrailAssociationTracking
4
- VERSION = "2.2.0".freeze
4
+ VERSION = "2.2.1".freeze
5
5
  end
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.0
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-15 00:00:00.000000000 Z
13
+ date: 2022-03-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: paper_trail