I need to add better testing here

This commit is contained in:
Sam 2013-12-20 17:41:12 +11:00
parent cc9326c29d
commit 2cf2ee9d2d

View file

@ -1,8 +1,8 @@
class GlobalSetting
def self.load_defaults
provider = FileProvider.from(File.expand_path('../../../config/discourse_defaults.conf', __FILE__))
provider.data.each do |name, default|
default_provider = FileProvider.from(File.expand_path('../../../config/discourse_defaults.conf', __FILE__))
default_provider.data.each do |name, default|
define_singleton_method(name) do
provider.lookup(name, default)
end