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.12.4 lib/generators/para/importer/templates/base_importer.rb
para-0.12.3 lib/generators/para/importer/templates/base_importer.rb
para-0.12.2 lib/generators/para/importer/templates/base_importer.rb
para-0.12.1 lib/generators/para/importer/templates/base_importer.rb
para-0.12.0 lib/generators/para/importer/templates/base_importer.rb
para-0.11.4 lib/generators/para/importer/templates/base_importer.rb
para-0.11.3 lib/generators/para/importer/templates/base_importer.rb
para-0.11.2 lib/generators/para/importer/templates/base_importer.rb
para-0.11.1 lib/generators/para/importer/templates/base_importer.rb
para-0.11.0 lib/generators/para/importer/templates/base_importer.rb
para-0.10.0 lib/generators/para/importer/templates/base_importer.rb
para-0.9.4 lib/generators/para/importer/templates/base_importer.rb
para-0.9.3.3 lib/generators/para/importer/templates/base_importer.rb
para-0.9.3.2 lib/generators/para/importer/templates/base_importer.rb
para-0.9.3.1 lib/generators/para/importer/templates/base_importer.rb
para-0.9.2 lib/generators/para/importer/templates/base_importer.rb
para-0.9.0 lib/generators/para/importer/templates/base_importer.rb
para-0.8.15 lib/generators/para/importer/templates/base_importer.rb
para-0.8.14 lib/generators/para/importer/templates/base_importer.rb
para-0.8.13 lib/generators/para/importer/templates/base_importer.rb