katalyst-koi 4.10.2 → 4.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/koi/model/archivable.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45eebdd9d805de5a4f6fea0adb5cbe1be9e7acae56eec2cb0598432b72f2c9f2
|
4
|
+
data.tar.gz: d6636ba479db7dfd3126a6bec4a1a11c4535e13c5f5813527ac5d6449198088b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9f6570c67724ca124ca2075fdeb24bfd648a9436e9387ddc84424b94e3546dee6c83b6928b94ff68c5dc390017edc0b17bee127ef94b400e987158e7057ddf0
|
7
|
+
data.tar.gz: 7c900c6d093290479a34e62ae76e318325abd4291925c40d372ca5c7f3ed93ebc976e8238a7d7e5a586c0bd4e41a18074962333821876d1c278a23917f851063
|
@@ -70,6 +70,7 @@ module Koi
|
|
70
70
|
def archive!
|
71
71
|
archive
|
72
72
|
save!(validate: false) if persisted?
|
73
|
+
self
|
73
74
|
end
|
74
75
|
|
75
76
|
# Mark a record as no longer archived. It will appear in default queries.
|
@@ -81,6 +82,7 @@ module Koi
|
|
81
82
|
def restore!
|
82
83
|
restore
|
83
84
|
save!(validate: false) if persisted?
|
85
|
+
self
|
84
86
|
end
|
85
87
|
end
|
86
88
|
end
|