Sha256: dd1a107251633a088db29cbab7287120a2585a50fb8521e6dbb556a439080d75
Contents?: true
Size: 345 Bytes
Versions: 3
Compression:
Stored size: 345 Bytes
Contents
module FastSeeder class RecordSet attr_reader :columns, :values, :model_class def initialize(model_class, columns) @model_class = model_class @columns = columns.map(&:to_s) @values = [] end def <<(values) @values << values end def table @model_class.table_name end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fast_seeder-0.1.0 | lib/fast_seeder/record_set.rb |
fast_seeder-0.0.2 | lib/fast_seeder/record_set.rb |
fast_seeder-0.0.1 | lib/fast_seeder/record_set.rb |