README.md in dir_model-0.6.2 vs README.md in dir_model-0.7.0
- old
+ new
@@ -158,13 +158,15 @@
zone_name: 'zone_name',
zone: File.new('spec/fixtures/image.png'),
})
]
-exporter = DirModel::Export::AggregateDir.new(BasicExportDirModel)
+exporter = DirModel::Export::AggregateDir.new
exporter.generate do |dir|
- models.each { |model| dir << model }
+ models.each do |model|
+ dir.append_model(BasicExportDirModel, model)
+ end
end
exporter.dir_path # => path of generated dir .../Sectors
```