Sha256: caf995233b317f3fbd65b1e1126214224734481f1915e8e02b177b72b0703d84

Contents?: true

Size: 347 Bytes

Versions: 54

Compression:

Stored size: 347 Bytes

Contents

class <%= model_importer_name %> < Para::Importer::Base
  # Let the importer rescue ActiveRecord::RecordInvalid errors and display them
  # as flash messages after importing valid records
  #
  # Remove or comment this line to disable this behavior
  #
  allow_import_errors!

  def import_from_row(row)
    # Add your import logic here
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
para-0.7.3.p5 lib/generators/para/importer/templates/base_importer.rb
para-0.7.3.p4 lib/generators/para/importer/templates/base_importer.rb
para-0.7.3.p3 lib/generators/para/importer/templates/base_importer.rb
para-0.7.3.p2 lib/generators/para/importer/templates/base_importer.rb
para-0.7.3.p1 lib/generators/para/importer/templates/base_importer.rb
para-0.7.3 lib/generators/para/importer/templates/base_importer.rb
para-0.7.2 lib/generators/para/importer/templates/base_importer.rb
para-0.7.1 lib/generators/para/importer/templates/base_importer.rb
para-0.7.0 lib/generators/para/importer/templates/base_importer.rb
para-0.6.9 lib/generators/para/importer/templates/base_importer.rb
para-0.6.8 lib/generators/para/importer/templates/base_importer.rb
para-0.6.7 lib/generators/para/importer/templates/base_importer.rb
para-0.6.3 lib/generators/para/importer/templates/base_importer.rb
para-0.6.2 lib/generators/para/importer/templates/base_importer.rb