mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue