DEV: Move Plugin::Instance.register_search_group_query_callback out of protected (#25413)

This commit is contained in:
Sérgio Saquetim 2024-01-25 13:36:43 -03:00 committed by GitHub
parent 89883b2f51
commit d34a7916c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -1286,6 +1286,10 @@ class Plugin::Instance
DiscoursePluginRegistry.register_post_stripper({ block: block }, self)
end
def register_search_group_query_callback(callback)
DiscoursePluginRegistry.register_search_groups_set_query_callback(callback, self)
end
protected
def self.js_path
@ -1367,10 +1371,6 @@ class Plugin::Instance
DiscoursePluginRegistry.register_topic_preloader_association(fields, self)
end
def register_search_group_query_callback(callback)
DiscoursePluginRegistry.register_search_groups_set_query_callback(callback, self)
end
private
def setting_category