Sha256: ad9d43a704cb6e8ceb25aecbe87d2100210f3317670ae3e4a8de1b99325163eb
Contents?: true
Size: 389 Bytes
Versions: 8
Compression:
Stored size: 389 Bytes
Contents
module CsvImporters class <%= klass %>Importer < Effective::CSVImporter def columns {<% columns.each_with_index do |column, index| %> <%= column %>: <%= (letters[index] || index) %><%= ',' unless (index+1) == columns.length %><% end %> } end def process_row # assign_columns(<%= klass.singularize %>.new).save! raise 'todo' end end end
Version data entries
8 entries across 8 versions & 1 rubygems