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.
|
# through the `summarization_strategy` setting.
|
||||||
def register_summarization_strategy(strategy)
|
def register_summarization_strategy(strategy)
|
||||||
Discourse.deprecate(
|
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)
|
if !strategy.class.ancestors.include?(Summarization::Base)
|
||||||
raise ArgumentError.new("Not a valid summarization strategy")
|
raise ArgumentError.new("Not a valid summarization strategy")
|
||||||
|
|
Loading…
Reference in New Issue