Skip to content

Commit

Permalink
Add Docstring for entry_translator_url in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKuhn committed Oct 7, 2024
1 parent 1d4eb2c commit adaeb70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/pageflow/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit adaeb70

Please sign in to comment.