mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
DEV: Fix deprecation typo (#27789)
This commit is contained in:
parent
a461eaddc3
commit
27eea3250c
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user