Skip to content
Snippets Groups Projects
Commit 880899d4 authored by Teal's avatar Teal
Browse files

Load correct ImportJob class

parent 149b15f6
No related branches found
No related tags found
1 merge request!23Fixup
Pipeline #38232 passed
...@@ -4,7 +4,7 @@ class FetchConferenceDataJob < ApplicationJob ...@@ -4,7 +4,7 @@ class FetchConferenceDataJob < ApplicationJob
def perform(conference_slug) def perform(conference_slug)
conference = Conference.find_by(slug: conference_slug) conference = Conference.find_by(slug: conference_slug)
# Convert import job class to class path format # Convert import job class to class path format
job_class_path = "#{conference.import_job_class.camelize}::ImportJob" job_class_path = "#{conference.import_job_class.camelize}"
if Object.const_defined?(job_class_path) if Object.const_defined?(job_class_path)
job_class = job_class_path.constantize job_class = job_class_path.constantize
job_class.perform_now(conference_slug) job_class.perform_now(conference_slug)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment