katalyst-content 2.4.0 → 2.4.1

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: e61521c19a9b52639135097816cb20865f41495014e4237e3890f708824afe89
4
- data.tar.gz: f2a00cd9857a85838332a0137855445310634f2aea3271bec7f4188fb00cd92c
3
+ metadata.gz: 1bfb581f4ada2518243e91f8194efd3d150259633374726b2efc6329bdf7ec69
4
+ data.tar.gz: d87c6cddedd46a9a87adcecccd649b5b9f3e0253b2444bfbc36a3a7e02e9b62f
5
5
  SHA512:
6
- metadata.gz: 40ec427cf35c4e76cc768ca53bbf447078687754093f38af7195d3b72afbffe5545f9f0398f0dd6e637bb0cea14725cf0491dccc00f4ef3f4ada69893b0b6174
7
- data.tar.gz: dd0f5dc01dbaf2b56c8e076d7ae129759408f79fa1455bb2d3e4529df0fd22e9532ed6440870bb640b421d7ee6373600dfec4fa4764ce0c388d2b99e454af733
6
+ metadata.gz: 9d425c40c9d3c52acf167f82ee2675127b4ab584c3745971fcd8257c4b01ca063fba5630e0388dcc3805fe71ac02b1d1402b610491e8475c3244e706e6eb5694
7
+ data.tar.gz: 11bed2d61c98e22433d8650a13e293cd3d3e522078854831fc3596c54ba8d6d3c9f0abda1e6255a9364b1864c433dc0cc7ef2eefc7d28818d9af2b4297a55a01
@@ -13,7 +13,7 @@ module Katalyst
13
13
  ACTIONS
14
14
 
15
15
  def initialize(item:, container: item.container)
16
- super(item:, container:)
16
+ super
17
17
  end
18
18
 
19
19
  def item_component(**)
@@ -4,6 +4,6 @@
4
4
  <%= render errors %>
5
5
 
6
6
  <%= render Katalyst::Content::Editor::TableComponent.new(container:) do |list| %>
7
- <%= container.draft_items.each { |item| list.with_item(item) } %>
7
+ <%= container.draft_items&.each { |item| list.with_item(item) } %>
8
8
  <% end %>
9
9
  <% end %>
@@ -25,7 +25,7 @@ module Katalyst
25
25
  end
26
26
 
27
27
  def valid?(context = nil)
28
- super(context)
28
+ super
29
29
  end
30
30
 
31
31
  def to_plain_text
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Katalyst::Content::Engine.routes.draw do
2
4
  resources :direct_uploads, only: :create
3
5
  resources :items
@@ -1,11 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ChangeKatalystContentItemsShowHeadingColumn < ActiveRecord::Migration[7.0]
4
+ # rubocop:disable Rails/SkipsModelValidations
4
5
  def up
5
6
  add_column :katalyst_content_items, :heading_style, :integer, null: false, default: 0
6
7
  Katalyst::Content::Item.where(show_heading: true).update_all(heading_style: 1)
7
8
  remove_column :katalyst_content_items, :show_heading, :boolean
8
9
  end
10
+ # rubocop:enable Rails/SkipsModelValidations
9
11
 
10
12
  def down
11
13
  raise ActiveRecord::IrreversibleMigration
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-content
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-15 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_storage_validations