2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Plugins can register providers for global settings

This commit is contained in:
Robin Ward 2017-01-09 17:10:14 -05:00
parent 185dcb2ca1
commit b60bc47a4c
5 changed files with 52 additions and 29 deletions

View file

@ -0,0 +1,7 @@
# Support for plugins to register custom setting providers. They can do this
# by having a file, `register_provider.rb` in their root that will be run
# at this point.
Dir.glob(File.join(File.dirname(__FILE__), '../plugins', '*', "register_provider.rb")) do |p|
require p
end