Feature: Hide plugins that ship with core from plugins panel

This commit is contained in:
Jeff Wong
2018-05-15 15:43:09 -07:00
parent c0a87f1fbf
commit 19605e8b0b
6 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ register_asset "stylesheets/desktop/poll.scss", :desktop
register_asset "stylesheets/mobile/poll.scss", :mobile
enabled_site_setting :poll_enabled
hide_plugin if self.respond_to?(:hide_plugin)
PLUGIN_NAME ||= "discourse_poll".freeze
DATA_PREFIX ||= "data-poll-".freeze