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 1155508
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/pageflow/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,15 @@ 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
attr_accessor :entry_translator_url

def initialize(target_type_name = nil)
Expand Down

0 comments on commit 1155508

Please sign in to comment.