active_propagation 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_propagation.rb +4 -1
- data/lib/active_propagation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50c35c392dc4f8ffc44205bbed8b43a65e39e435
|
4
|
+
data.tar.gz: 4a6c2f6b0bd6b573e1c0cf54fb2a9dac8fa9ecc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed75b033a051dd8e964a0fa414bbeab8ad8fd6accdea842e1359925bf000d8c0f725f52447fa5313b0ae9e9b052cae43fe717b039c0370fa6a0c8da0bba15528
|
7
|
+
data.tar.gz: 6186af79b84a6e13632e3a51554e2fcfc4336ab325d3bd317906738668619803c478d9aa9bdffb508c2c4a6deef323362e6d175c22d4466aba3bdb34f5038d44
|
data/lib/active_propagation.rb
CHANGED
@@ -59,7 +59,10 @@ module ActivePropagation
|
|
59
59
|
include PropagaterHelper
|
60
60
|
include Sidekiq::Worker
|
61
61
|
def perform(assoc_klass_str, assoc_id)
|
62
|
-
assoc_klass_str.constantize.
|
62
|
+
a = assoc_klass_str.constantize.find_by(id: assoc_id)
|
63
|
+
if a
|
64
|
+
a.destroy
|
65
|
+
end
|
63
66
|
end
|
64
67
|
end
|
65
68
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_propagation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiki Schmitz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|