fixes #19, don't skip if overwrite is false
git-svn-id: file:///home/svn/framework3/trunk@4449 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
fbd91e48d4
commit
4d60b8f146
|
@ -60,7 +60,7 @@ class DataStore < Hash
|
|||
options.each_option { |name, opt|
|
||||
# If there's already a value defined for this option, then skip it
|
||||
# and don't import it.
|
||||
next if self[name]
|
||||
next if self[name] and overwrite == false
|
||||
|
||||
# If the option has a default value, import it, but only if the
|
||||
# datastore doesn't already have a value set for it.
|
||||
|
|
Loading…
Reference in New Issue