mirror of
https://github.com/discourse/discourse.git
synced 2024-11-21 16:38:15 -06:00
13 lines
303 B
Ruby
13 lines
303 B
Ruby
# frozen_string_literal: true
|
|
|
|
module FlagQuery
|
|
def self.plugin_post_custom_fields
|
|
@plugin_post_custom_fields ||= {}
|
|
end
|
|
|
|
# Allow plugins to add custom fields to the flag views
|
|
def self.register_plugin_post_custom_field(field, plugin)
|
|
plugin_post_custom_fields[field] = plugin
|
|
end
|
|
end
|