From adaeb7025164719fcc34a51ce9dc275b75073da6 Mon Sep 17 00:00:00 2001 From: Daniel Kuhn Date: Mon, 7 Oct 2024 14:48:44 +0200 Subject: [PATCH] Add Docstring for entry_translator_url in configuration --- lib/pageflow/configuration.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/pageflow/configuration.rb b/lib/pageflow/configuration.rb index 05af75a8b..f78278051 100644 --- a/lib/pageflow/configuration.rb +++ b/lib/pageflow/configuration.rb @@ -425,6 +425,16 @@ class Configuration # @since 12.2 attr_accessor :news + # URL to a form that is used to translate an entry via an external service. + # + # @example + # + # config.features.register 'ai_translator' do |feature_config| + # feature_config.entry_translator_url = lambda do |entry| + # Rails.application.routes.url_helpers.new_admin_entry_ai_translation_path(entry) + # end + # end + # @since edge attr_accessor :entry_translator_url def initialize(target_type_name = nil)