lib/utils/db_utils.rb in codebreaker_paratskiy-0.2.0 vs lib/utils/db_utils.rb in codebreaker_paratskiy-0.2.1
- old
+ new
@@ -5,8 +5,9 @@
file.write(element.to_yaml)
end
end
def self.get(path)
+ add(path, []) unless File.file?(path)
YAML.load_file(path)
end
end