DEV: Add configurable? helper to Plugin::Instance (#20767)

This can be used to forcibly disable plugins.
This commit is contained in:
Bianca Nenciu
2023-05-10 12:16:37 +02:00
committed by GitHub
parent c6b43ce68b
commit 3073e5cfb0
7 changed files with 100 additions and 16 deletions

View File

@ -20,7 +20,7 @@ hide_plugin
after_initialize do
module ::DiscoursePoll
PLUGIN_NAME ||= "discourse_poll"
PLUGIN_NAME ||= "poll"
DATA_PREFIX ||= "data-poll-"
HAS_POLLS ||= "has_polls"
DEFAULT_POLL_NAME ||= "poll"