paper_trail-active_record 1.0.0 → 1.0.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: 7eb43efab491ca147042d869e1c6cb393f93aeb0009b0d4cb07cbd2bf53a6f86
|
4
|
+
data.tar.gz: 2dbd8283253a607fafca24f701a3301370e68a297b268dfafb6860a695fc21c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d51610af16be9fe0c8963194c41e218fa5a1dd3916c22d15e7c7fea6a2e137f3d87da649f7cee471b65267c195150ca5bdaed4d32b35624b5f05d2d4632b718
|
7
|
+
data.tar.gz: 64ada7b475c0594cff53556e7c703fbf07a91af9106bb0d3e504ef9a22729427ce753f65a30a99bdca6ac05e3c06c278b6d6caf7a6c29d447dab5f5028c2f188
|
@@ -52,13 +52,13 @@ module OrDeleted
|
|
52
52
|
|
53
53
|
klass =
|
54
54
|
if reflection.polymorphic?
|
55
|
-
public_send(reflection.foreign_type)
|
55
|
+
public_send(reflection.foreign_type)&.constantize
|
56
56
|
else
|
57
57
|
reflection.klass
|
58
58
|
end
|
59
59
|
id = public_send(reflection.foreign_key)
|
60
60
|
|
61
|
-
klass
|
61
|
+
klass&.find_deleted(id) if id
|
62
62
|
end
|
63
63
|
end)
|
64
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tyler Rick
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paper_trail
|