sequel-paranoid 0.6.0 → 0.6.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
  SHA1:
3
- metadata.gz: 27d2f58658899d2edb9cbab4c72e6b61cc9f34ba
4
- data.tar.gz: 3f781d1eaaaff4df9e7e3193d13dcdd7ed3e75ff
3
+ metadata.gz: 0169362a1eb1a05abec4c406222b63f2a06c0803
4
+ data.tar.gz: f9ce63def94d19e2dc9bb7e595f110f993ca6134
5
5
  SHA512:
6
- metadata.gz: 43571353fa4af350dff6f94ece791bda1f45e442c3005de50d09391f06e39d25b53b488c1d955a9524ebe68857981d4d6d4cf64ae920b18f2cc513ecbbdd4f5c
7
- data.tar.gz: 7d3e97fd856380d91938f87d364b7c6170da21e11933b4713094b72ea7f9e3665300b35981ecfdc4a308a43aa1090556621ba7578cb152d8e8b2ad026447e8b2
6
+ metadata.gz: 3a8cbcc3a9bf3e0bf35bc973c3dbb398c819d3a25aeea591212bff8313db4d27e863cdd9cfd5618fe64d9bafd227705e98b676091301bb190f93aaca4781005e
7
+ data.tar.gz: e2f01429053753c721603e9233d976c3417513008d0f77c43fffc97d17a35e80fa98ab852c7d86655393b6f5204d27d06431c1d10f3fc099816082743b11d49f
@@ -44,15 +44,15 @@ module Sequel::Plugins
44
44
  define_method("destroy") do |*args|
45
45
  # Save the variables threadsafe (because the locks have not been
46
46
  # initialized by sequel yet).
47
- Thread.current[:_paranoid_destroy_args] = args
47
+ Thread.current["_paranoid_destroy_args_#{self.object_id}"] = args
48
48
 
49
49
  super(*args)
50
50
  end
51
51
 
52
52
  define_method("_destroy_delete") do
53
53
  # _destroy_delete does not take arguments.
54
- destroy_options = Thread.current[:_paranoid_destroy_args].first
55
- Thread.current[:_paranoid_destroy_args] = nil
54
+ destroy_options = Thread.current["_paranoid_destroy_args_#{self.object_id}"].first
55
+ Thread.current["_paranoid_destroy_args_#{self.object_id}"] = nil
56
56
 
57
57
  # set the deletion time
58
58
  self.send("#{options[:deleted_at_field_name]}=", Time.now)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-paranoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Depold
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel