DEV: Allow additional TopicList preloaded associations (#18891)

This provides a means to allow additional associations to be preloaded when generating a TopicList.
This commit is contained in:
jbrw
2022-12-12 09:08:13 -05:00
committed by GitHub
parent 2a4fea4372
commit 1a48ea767e
4 changed files with 25 additions and 1 deletions

View File

@ -1220,6 +1220,10 @@ class Plugin::Instance
end
end
def register_topic_preloader_associations(fields)
DiscoursePluginRegistry.register_topic_preloader_association(fields, self)
end
private
def validate_directory_column_name(column_name)