lib/confuse/config.rb in confuse-0.1.2 vs lib/confuse/config.rb in confuse-0.1.3
- old
+ new
@@ -12,11 +12,14 @@
include ConfigMixin
extend DSL
def initialize(*paths)
load_namespaces(self.class.namespaces)
- read_files(self.class.config_path.flatten)
- read_files(paths.flatten)
+ if paths.flatten.empty?
+ read_files(self.class.config_path.flatten)
+ else
+ read_files(paths.flatten)
+ end
end
def config
self
end