DEV: Fix deprecation typo (#27789)

This commit is contained in:
Natalie Tay 2024-07-09 17:46:10 +08:00 committed by GitHub
parent a461eaddc3
commit 27eea3250c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1183,7 +1183,7 @@ class Plugin::Instance
# through the `summarization_strategy` setting.
def register_summarization_strategy(strategy)
Discourse.deprecate(
"register_summarization_straegy is deprecated. Summarization code is now moved to Discourse AI",
"register_summarization_strategy is deprecated. Summarization code is now moved to Discourse AI",
)
if !strategy.class.ancestors.include?(Summarization::Base)
raise ArgumentError.new("Not a valid summarization strategy")