mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
Plugins can register providers for global settings
This commit is contained in:
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
|
Reference in New Issue
Block a user