tramway-page 1.5.4.3 → 1.6.0.1
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/controllers/tramway/page/application_controller.rb +1 -1
- data/app/controllers/tramway/page/pages_controller.rb +1 -0
- data/app/decorators/tramway/page/page_decorator.rb +1 -1
- data/app/forms/admin/tramway/page/page_form.rb +1 -1
- data/app/models/tramway/page/page.rb +2 -2
- data/config/initializers/tramway.rb +1 -1
- data/lib/tramway/page/generators/install_generator.rb +2 -2
- data/lib/tramway/page/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3d4445c9931a57db0905afc03bf97755531f2fee06591c2b0a759a468a684ce
|
4
|
+
data.tar.gz: 285e26865f4c9328aa36604f3fc460f7b684c8e305464911228489511e308496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339d29f9de4b6e9a07efac3ebf910c56dc1e056f6d521a1cc90df4881eaeb68ad46323130f49ec67c531becde4702d111bfdd0b4744f8c36474e1ed4c63aac3f
|
7
|
+
data.tar.gz: 50612a5745c74ff1a1c980adb455423d61f627d77aece4495509fff856984ad3fd62e97e9e98175d2f3e4a97b585f2e63f5a9544ee0c5fdad4f789d2bd5400af
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class Admin::Tramway::Page::PageForm < ::Tramway::
|
3
|
+
class Admin::Tramway::Page::PageForm < ::Tramway::ApplicationForm
|
4
4
|
properties :title, :body, :slug, :view, :page_type, :view_state_event
|
5
5
|
|
6
6
|
def initialize(object)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
class Tramway::Page::Page < ::Tramway::
|
3
|
+
class Tramway::Page::Page < ::Tramway::ApplicationRecord
|
4
4
|
has_many :blocks, -> { order(position: :asc) }, class_name: 'Tramway::Landing::Block'
|
5
5
|
|
6
|
-
enumerize :page_type, in: %i[main other], default: :other
|
6
|
+
enumerize :page_type, in: %i[main other without_layout], default: :other
|
7
7
|
|
8
8
|
scope :landings, -> { where page_type: :landing }
|
9
9
|
scope :published, -> { where view_state: :published }
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'rails/generators'
|
4
|
-
require 'tramway/
|
4
|
+
require 'tramway/generators/install_generator'
|
5
5
|
|
6
6
|
module Tramway::Page::Generators
|
7
|
-
class InstallGenerator < ::Tramway::
|
7
|
+
class InstallGenerator < ::Tramway::Generators::InstallGenerator
|
8
8
|
include Rails::Generators::Migration
|
9
9
|
source_root File.expand_path('templates', __dir__)
|
10
10
|
|
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.
|
4
|
+
version: 1.6.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-16 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.4.1
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Summary of Tramway::Page.
|