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:
parent
185dcb2ca1
commit
b60bc47a4c
5 changed files with 52 additions and 29 deletions
7
lib/custom_setting_providers.rb
Normal file
7
lib/custom_setting_providers.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue