osunyorg/admin

View on GitHub
app/jobs/importer/execute_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Importer::ExecuteJob < ApplicationJob
  queue_as :default

  def perform(import)
    importer_class = "Importers::#{import.kind.camelize}".constantize
    importer_class.execute(import)
  end
end