tramway-page 1.4.1 → 1.4.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1cbea56bbf0d6591b925fe452014620ff8b7d86455513594c6b8f05bce3979e
4
- data.tar.gz: 6d211b20569f271b391f895adad6989d14913eccafc56ec1abd5e9e2d922cdf6
3
+ metadata.gz: ebbe41da72a751608ce40feac7108d78734b83b8ef430bb868dd6f15bf8e599b
4
+ data.tar.gz: 7d700428307a2111a6630ae4af691ec275e3cfd4b2f62b4e82f3614e44514910
5
5
  SHA512:
6
- metadata.gz: d8b2e229afc065d945fe9ca9e47e87345b4c34e54a2ed09096db1b99004dff7bb40f33b815b52c052900362d692fe69e78d8f7d8cd557440cc62033aa45d24f6
7
- data.tar.gz: 41d82c1b5a68039374ef17b5752fad5ce51d03d9a5949f32282ece73a1f50e716abc6eb6ff5d68a1dbc68cf70df66888f4abace63fc9e1b8d6a8868741f90c53
6
+ metadata.gz: f13528bb3dded3435042b1345e3b44239614ed139f5f4e74c536f68dafdee4769e35d8075699242bf4433454be02bf951af94d0386b393ecaf16283089e23089
7
+ data.tar.gz: 6b104e3b31c58ce18f6da90b17f405ad752631f452f0a66118203c0691241bb2cede560aa2e3ef880d99aedba800701238f0135805f1512314d9d9e181b91cb7
@@ -5,7 +5,7 @@ class ::Tramway::Page::PagesController < ::Tramway::Page::ApplicationController
5
5
 
6
6
  def show
7
7
  @page = ::Tramway::Page::Page.find_by slug: params[:slug]
8
- @blocks = @page.blocks.active.map do |block|
8
+ @blocks = @page.blocks.published.active.map do |block|
9
9
  if block.block_type.header_with_form? && block.form_url.present?
10
10
  # FIXME in future
11
11
  @header_with_form = block.form_to_render.new(Tramway::Auth.authenticable_models.first.new)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tramway
4
4
  module Page
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.1.1'
6
6
  end
7
7
  end
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.1
4
+ version: 1.4.1.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: 2020-04-03 00:00:00.000000000 Z
11
+ date: 2020-04-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Description of Tramway::Page.
14
14
  email: