Sha256: ae6927ddfbe914f1229c1250c169fb3452f52ebf5a0ba7e56911bcad8c7534bc

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

# frozen_string_literal: true

Importo.setup do |config|
  config.base_controller = '::ApplicationController'
  config.admin_authentication_module = 'Authenticated'

  # Current import owner
  config.current_import_owner = -> { User.current }

  # Set callbacks for the import states. You can configure callbacks to work with different states
  config.import_callbacks = {
      importing: lambda do |import|
      end,
      completed: lambda do |import|
      end,
      failed: lambda do |import|
      end
  }

  config.queue_name = :import
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-2.0.5 lib/generators/templates/importo.rb
importo-2.0.4 lib/generators/templates/importo.rb