kamikakushi 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/kamikakushi/version.rb +2 -2
- data/lib/kamikakushi.rb +5 -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: 3d57943be6dcfaafeaa6e40c9428d3ff0707c2da
|
4
|
+
data.tar.gz: ea56754ca04bfefb15b68e45e434e1ce78ec6362
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 498d8b86b29e8280eb58aee1f759aafa8ed1b8e83d5af097a58562854ac076b864ca02937b7ff1be650b05d9ed592756c57f143173f067203a00fcaaaf023c9e
|
7
|
+
data.tar.gz: 29073f0dceb08ffbf73e7e3f5b1d7cd192c70b71ddc5b0510141a84d51f446a930731ce771d56500450730ac8e5b60580c296cb7134b218c2dc2fe4eb1f31791
|
data/Rakefile
CHANGED
data/lib/kamikakushi/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = "0.0.
|
1
|
+
module Kamikakushi
|
2
|
+
VERSION = "0.0.4"
|
3
3
|
end
|
data/lib/kamikakushi.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
module
|
1
|
+
module Kamikakushi
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
@@ -20,7 +20,9 @@ module Kamiakushi
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def destroy_with_kamikakushi
|
23
|
-
|
23
|
+
run_callbacks(:destroy) do
|
24
|
+
update_column(:deleted_at, Time.current)
|
25
|
+
end
|
24
26
|
end
|
25
27
|
|
26
28
|
def destroyed_with_kamikakushi?
|
@@ -31,7 +33,7 @@ module Kamiakushi
|
|
31
33
|
update_column(:deleted_at, self.deleted_at = nil)
|
32
34
|
end
|
33
35
|
|
34
|
-
def
|
36
|
+
def purge
|
35
37
|
destroy_without_kamikakushi
|
36
38
|
end
|
37
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kamikakushi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ppworks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|