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 +4 -4
- data/lib/sequel/plugins/paranoid.rb +3 -3
- 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: 0169362a1eb1a05abec4c406222b63f2a06c0803
|
4
|
+
data.tar.gz: f9ce63def94d19e2dc9bb7e595f110f993ca6134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[
|
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[
|
55
|
-
Thread.current[
|
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.
|
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-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|