Sha256: 1b2678fa308b6622d911999cc6c850d583e808064344a2703425a9a749159e29

Contents?: true

Size: 377 Bytes

Versions: 6

Compression:

Stored size: 377 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 %>.new).save!
      raise 'todo'
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
effective_developer-0.2.1 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.2 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.1.1 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.0.10 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.0.9 lib/scaffolds/importers/csv_importer.rb
effective_developer-0.0.8 lib/generators/effective_developer/csv_importer.rb.erb