Sha256: 8eed2765de6b4acc9930eb32c559e33958a268639bf8ebb1f91d91548ed8d0d5

Contents?: true

Size: 269 Bytes

Versions: 3

Compression:

Stored size: 269 Bytes

Contents

class <%= class_name %>Importer < RailsImporter::Base
  # Load a file and the get data from each file row
  #
  # @params
  #   row   => A row to be processed
  def load_data(row:)
    # Implement this with custom logic. Otherwise, it will raise an exception
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_importer-0.2.1 lib/generators/rails_importer/templates/importer.rb
rails_importer-0.2.0 lib/generators/rails_importer/templates/importer.rb
rails_importer-0.1.0 lib/generators/rails_importer/templates/importer.rb