tramway-landing 3.2 → 3.2.0.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f1d39d83c76954bd7017c0fe486c14abfe80196382dd09e7ea98bf5e876ca3c
|
|
4
|
+
data.tar.gz: 643f56984b540a39fa2ef99e7860bbd2512b5e8867af569ec9af87dd24cb2361
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51dca16a03148c007a512241d62f9b1c287d79269ccd1c1130b657b15dcf1c11b1e539b25f7967f78daf5dabbcbae335650880c8de15409d37031281531b0d43
|
|
7
|
+
data.tar.gz: 20a42a2c6c5e04fb034a5bc65449cbdf5b460157afb03c9657802c20e9495099c22ffb9a4423ca818af5e27eb44777dc5a3788b8b1f499a6d921dd9a37fdcb88
|
|
@@ -13,8 +13,6 @@ class Tramway::Landing::BlockDecorator < ::Tramway::Core::ApplicationDecorator
|
|
|
13
13
|
def show_associations
|
|
14
14
|
[:forms]
|
|
15
15
|
end
|
|
16
|
-
|
|
17
|
-
delegate :human_view_state_event_name, to: :model_class
|
|
18
16
|
end
|
|
19
17
|
|
|
20
18
|
decorate_association :forms
|
|
@@ -39,7 +37,7 @@ class Tramway::Landing::BlockDecorator < ::Tramway::Core::ApplicationDecorator
|
|
|
39
37
|
end
|
|
40
38
|
|
|
41
39
|
def view_state
|
|
42
|
-
object.
|
|
40
|
+
object.view_state
|
|
43
41
|
end
|
|
44
42
|
|
|
45
43
|
def link
|
|
@@ -10,16 +10,16 @@ class Tramway::Landing::Block < ::Tramway::Landing::ApplicationRecord
|
|
|
10
10
|
|
|
11
11
|
uploader :background, :photo, extensions: %i[jpg jpeg gif png]
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
state :published
|
|
13
|
+
aasm :view_state do
|
|
14
|
+
state :published, initial: true
|
|
15
15
|
state :hidden
|
|
16
16
|
|
|
17
17
|
event :publish do
|
|
18
|
-
|
|
18
|
+
transitions from: :hidden, to: :published
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
event :hide do
|
|
22
|
-
|
|
22
|
+
transitions from: :published, to: :hidden
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tramway-landing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- moshinaan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Landing Engine for your Rails projects
|
|
14
14
|
email:
|