Skip to content

Commit

Permalink
Improve doc string
Browse files Browse the repository at this point in the history
Make example more generic. Keep example usage of host application route helpers
  • Loading branch information
tf authored Oct 7, 2024
1 parent adaeb70 commit f6d2969
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/pageflow/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,8 @@ class Configuration
#
# @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
# config.entry_translator_url = lambda do |entry|
# Rails.application.routes.url_helpers.some_custom_route(entry)
# end
# @since edge
attr_accessor :entry_translator_url
Expand Down

0 comments on commit f6d2969

Please sign in to comment.