mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
I need to add better testing here
This commit is contained in:
parent
cc9326c29d
commit
2cf2ee9d2d
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
class GlobalSetting
|
class GlobalSetting
|
||||||
|
|
||||||
def self.load_defaults
|
def self.load_defaults
|
||||||
provider = FileProvider.from(File.expand_path('../../../config/discourse_defaults.conf', __FILE__))
|
default_provider = FileProvider.from(File.expand_path('../../../config/discourse_defaults.conf', __FILE__))
|
||||||
provider.data.each do |name, default|
|
default_provider.data.each do |name, default|
|
||||||
define_singleton_method(name) do
|
define_singleton_method(name) do
|
||||||
provider.lookup(name, default)
|
provider.lookup(name, default)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue