lib/configurable/delegate_hash.rb in configurable-0.4.0 vs lib/configurable/delegate_hash.rb in configurable-0.4.1
- old
+ new
@@ -183,10 +183,10 @@
# delegate default. if map_default is false, then simply skip...
# this ensures each config is initialized to a value when bound
# UNLESS map_default is set (indicating manual initialization)
value = case
when source.has_key?(key) then source.delete(key)
- when delegate[:map_default, true] then delegate.default
+ when delegate[:set_default, true] then delegate.default
else next
end
receiver.send(delegate.writer, value)
end
\ No newline at end of file