Class: Course::Assessment::Submission::PublishingJob

Inherits:
ApplicationJob
  • Object
show all
Includes:
TrackableJob
Defined in:
app/jobs/course/assessment/submission/publishing_job.rb

Instance Attribute Summary

Attributes included from TrackableJob

#job

Instance Method Summary collapse

Methods included from TrackableJob

#initialize, #job_id=, #perform, #rescue_tracked, #wait

Instance Method Details

#perform_tracked(assessment, publisher) ⇒ Object (protected)


8
9
10
11
12
13
14
15
# File 'app/jobs/course/assessment/submission/publishing_job.rb', line 8

def perform_tracked(assessment, publisher)
  instance = Course.unscoped { assessment.course.instance }
  ActsAsTenant.with_tenant(instance) do
    publish_submissions(assessment, publisher)
  end

  redirect_to course_assessment_submissions_path(assessment.course, assessment)
end