Allow calling hook for external link capture

This commit is contained in:
Oliver Günther
2026-04-02 16:09:16 +02:00
parent d875d31b86
commit 9da312202c
2 changed files with 3 additions and 1 deletions
@@ -32,6 +32,8 @@ module Admin
module Settings
class ExternalLinksSettingsForm < ApplicationForm
settings_form do |sf|
helpers.call_hook(:component_admin_settings_external_redirect, form: sf)
sf.check_box(
name: :capture_external_links,
caption: I18n.t(:setting_capture_external_links_text)
+1 -1
View File
@@ -1100,7 +1100,7 @@ RSpec.describe Settings::Definition, :settings_reset do
context "when the override block returns a callable" do
before do
described_class.add_value_override(:bogus_override_test) do
-> { nil }
-> {}
end
end