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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73fa0ea67daa06ff7b1cec8a2d710596a095f613
4
- data.tar.gz: 4a8da8a0e3448641164567120d36d095b0c903a2
3
+ metadata.gz: 50c35c392dc4f8ffc44205bbed8b43a65e39e435
4
+ data.tar.gz: 4a6c2f6b0bd6b573e1c0cf54fb2a9dac8fa9ecc6
5
5
  SHA512:
6
- metadata.gz: ea9418a12e10fd83dbe144236553b762191757c64d903170c028e6c82fc864f5272ef10ff8234310f9b1c734936b89ea78b53cfca19d3f5625befa59109b8422
7
- data.tar.gz: 1f08079cd7cadb36d068864e2b1d48450953d2eb705ecc7299f4c24f77904148aaf4582666ed2edad71646a69719040aa5aa0baebba573740df08b607a35ba2b
6
+ metadata.gz: ed75b033a051dd8e964a0fa414bbeab8ad8fd6accdea842e1359925bf000d8c0f725f52447fa5313b0ae9e9b052cae43fe717b039c0370fa6a0c8da0bba15528
7
+ data.tar.gz: 6186af79b84a6e13632e3a51554e2fcfc4336ab325d3bd317906738668619803c478d9aa9bdffb508c2c4a6deef323362e6d175c22d4466aba3bdb34f5038d44
@@ -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.find(assoc_id).destroy
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
 
@@ -1,3 +1,3 @@
1
1
  module ActivePropagation
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
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.11
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-07-23 00:00:00.000000000 Z
11
+ date: 2015-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler