lib/sanultari/config.rb in sanultari-config-0.2.3 vs lib/sanultari/config.rb in sanultari-config-0.2.4
- old
+ new
@@ -105,9 +105,10 @@
@store.public_send method_name, *args, &block
end
def load_defaults
return unless default_available?
+ @default = SanUltari::Config.new.init! @default if @default.instance_of? String
default_hash = @default.to_hash
default_hash.keys.each do |key|
self.public_send "#{key}=".to_sym, default_hash[key]
end
end