alchemy_cms 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/alchemy/element.rb +3 -2
- data/lib/alchemy/version.rb +1 -1
- 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: 2dba164cab2525eb7f9b3b797044db142baad7bb29050f915cc9a9c98f2a977f
|
|
4
|
+
data.tar.gz: 1ecd7cf9aa2d04c2351ac010a45cf1c6595e93d407fd4954596d1b70ae680846
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee92b93794524b3f8a2a09f9d8ef060f48d7689cf3b3faade0191a0866e008ba908e0ee7cc2591a825c8dfea1e51c2f2b8f53504d36a95f1f1585b88c20d9334
|
|
7
|
+
data.tar.gz: a238c2d4596dc2835ad01048941fd492ddc053be741eb987d6114a89d59dd0ddac637fbcea012a136d5ad14ed4c06d6bd7e7e1481914288e20c530dcdf4fa0a3
|
|
@@ -234,9 +234,10 @@ module Alchemy
|
|
|
234
234
|
def public=(value)
|
|
235
235
|
@public_on_explicitely_set = true
|
|
236
236
|
if ActiveModel::Type::Boolean.new.cast(value)
|
|
237
|
-
self.public_on
|
|
237
|
+
self.public_on = Time.current
|
|
238
|
+
self.public_until = nil
|
|
238
239
|
else
|
|
239
|
-
self.
|
|
240
|
+
self.public_until = Time.current
|
|
240
241
|
end
|
|
241
242
|
end
|
|
242
243
|
|
data/lib/alchemy/version.rb
CHANGED