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

Version Path
effective_developer-0.2.9 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.8 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.7 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.6 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.5 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.4 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.3 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2.2 lib/scaffolds/importers/csv_importer.rb