Module: SeedDump::DumpMethods
- Includes:
- Enumeration
- Included in:
- SeedDump
- Defined in:
- lib/seed_dump/dump_methods.rb,
lib/seed_dump/dump_methods/enumeration.rb
Defined Under Namespace
Modules: Enumeration
Instance Method Summary collapse
Methods included from Enumeration
#active_record_enumeration, #batch_params_from, #batch_size_from, #enumerable_enumeration
Instance Method Details
#dump(records, options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/seed_dump/dump_methods.rb', line 5 def dump(records, = {}) return nil if records.count == 0 io = open_io() write_records_to_io(records, io, ) ensure io.close if io.present? end |