From d34a7916c05e6be576efa2c85b884ef9887c7ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Saquetim?= <1108771+megothss@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:36:43 -0300 Subject: [PATCH] DEV: Move Plugin::Instance.register_search_group_query_callback out of protected (#25413) --- lib/plugin/instance.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index f9725917496..eca1bd16cf7 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -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