lib/praxis/config.rb in praxis-0.10.1 vs lib/praxis/config.rb in praxis-0.11pre

- old
+ new

@@ -26,10 +26,11 @@ # define do # attribute :app do # attribute :two String # end # end + # ...or using this way too (equivalent) # define(:app) do # attribute :two, String # end # You can also define a key to be a non-Struct type @@ -67,11 +68,11 @@ def set(config) context = ['Application', 'config'] begin - @value = @attribute.load(config, context) + @value = @attribute.load(config, context, recurse: true) rescue Attributor::AttributorException => e raise Exceptions::ConfigLoad.new(exception: e) end errors = @attribute.validate(@value, context) @@ -82,10 +83,10 @@ end def get @value ||= begin context = ['Application','config'].freeze - @attribute.load({},context) + @attribute.load({},context, recurse: true) end end end end