tramway-page 1.6.0.1 → 1.6.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d337bda1e87aeb3b5df6debe2fd4ad26fd4bffa28521a72a18f782490eba33a0
|
4
|
+
data.tar.gz: 87c8f494fa70d06829f0987e35528ec9ae6a2fe600eb9d5b98bc7e3fda88dc63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6431d7a6ef88be40b0c540931e4c9fccfc1ce6d18dbee1f94b64b1235f336cdee8d5d80614e415cbb4d6d5346e018175749d1fe81241c9c8192fabdee1d6de1f
|
7
|
+
data.tar.gz: 68598dac4d37e52748ef6976d4436996367e6d5d7670d06049d535cc64a0f4d1b7cb63d53c070866e6702f88bda3189c1432e7973d337609c94263e0b02676c4
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class
|
3
|
+
class Tramway::Page::PagesController < Tramway::Page::ApplicationController
|
4
4
|
layout 'tramway/landing/application'
|
5
5
|
|
6
6
|
def show
|
7
|
-
@page =
|
7
|
+
@page = Tramway::Page::Page.published.find_by slug: params[:slug]
|
8
8
|
@blocks = @page.blocks.published.map do |block|
|
9
9
|
if block.block_type.header_with_form? && block.form_url.present?
|
10
10
|
# FIXME: in future
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class Tramway::Page::Page <
|
3
|
+
class Tramway::Page::Page < Tramway::ApplicationRecord
|
4
4
|
has_many :blocks, -> { order(position: :asc) }, class_name: 'Tramway::Landing::Block'
|
5
5
|
|
6
6
|
enumerize :page_type, in: %i[main other without_layout], default: :other
|
@@ -20,4 +20,8 @@ class Tramway::Page::Page < ::Tramway::ApplicationRecord
|
|
20
20
|
transitions from: :published, to: :unpublished
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
24
|
+
aasm do
|
25
|
+
state :hack
|
26
|
+
end
|
23
27
|
end
|
data/lib/tramway/page/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tramway-page
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.0.
|
4
|
+
version: 1.6.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Description of Tramway::Page.
|
14
14
|
email:
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
71
|
+
rubygems_version: 3.1.6
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Summary of Tramway::Page.
|