katalyst-koi 5.8.0 → 5.8.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: 50571f4d38bdd5a392f56f658c1b2cb4ae11309f0abc141395df929c36f3cfe8
4
- data.tar.gz: 7d6bbd00b17826a2a62b60a8afc5eb6d50942caad2655ea9ac10d7dcc527b931
3
+ metadata.gz: 2bbccc1c1a51a92e74c56bf5664d501b1abde8246d87603dea5a8cd3d2b9e240
4
+ data.tar.gz: 9865266ed5c3db70a2e006495eba5252878cfe3e11b7963a5e95ed2d6f92eb59
5
5
  SHA512:
6
- metadata.gz: c4a95cff03cecdf6e7a16f3ac9222340c099878637644202783f7853f0cc13b129597b4005570f1eb60f662b6ad11645d9e94d78f57811deb25b2523f2ff1ea4
7
- data.tar.gz: 23960b0dc20345ac729c2d4014fd7d11c032875f0e42a6c8f3fdb8e49b6d1c825d1f95b838714c93866bd61335e7dab531d1503057595cc433444894bf85015c
6
+ metadata.gz: b2cd8370bb22c9f84a4ddedb86ee6080affc6c9168a2d115231e75265e08b9e07a38411d34394a5e69b8fa11fb6bae8b3191ae47c0cd32bea5569ef490df6810
7
+ data.tar.gz: 84cb4ab7ae83e6d442c018d111a65b1098922681b257edb55b6ab4bddaf87cfe0c962ad3fe92c88b9a00d2c9cc78b4bb3305a5dc92aaed1bf4e714bebe9a7cea
@@ -5,10 +5,6 @@ module Koi
5
5
  module Builder
6
6
  extend ActiveSupport::Concern
7
7
 
8
- included do
9
- delegate_missing_to :@template
10
- end
11
-
12
8
  # Generates a submit button for saving admin resources.
13
9
  # @deprecated will be removed in Koi 6.0
14
10
  def admin_save(text = "Save", name: :commit, value: :save, class: "button", **)
@@ -72,7 +68,7 @@ module Koi
72
68
  def lexxy_rich_textarea(attribute_name, **attributes, &)
73
69
  attributes = {
74
70
  class: "lexxy-content",
75
- data: { direct_upload_url: @template.admin_direct_uploads_url },
71
+ data: { direct_upload_url: @template.main_app.admin_direct_uploads_url },
76
72
  }.merge_html(**attributes)
77
73
 
78
74
  super
@@ -85,7 +81,7 @@ module Koi
85
81
  def trix_rich_textarea(attribute_name, **attributes, &)
86
82
  attributes = {
87
83
  class: "trix-content",
88
- data: { direct_upload_url: @template.admin_direct_uploads_url },
84
+ data: { direct_upload_url: @template.main_app.admin_direct_uploads_url },
89
85
  }.merge_html(**attributes)
90
86
 
91
87
  super
@@ -4,5 +4,7 @@ module Koi
4
4
  class FormBuilder < ActionView::Helpers::FormBuilder
5
5
  include GOVUKDesignSystemFormBuilder::Builder
6
6
  include Koi::Form::Builder
7
+
8
+ delegate :content_tag, :tag, :safe_join, :link_to, :capture, to: :@template
7
9
  end
8
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-koi
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.8.0
4
+ version: 5.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive