lib/good_job/execution.rb in good_job-2.8.0 vs lib/good_job/execution.rb in good_job-2.8.1
- old
+ new
@@ -49,9 +49,11 @@
else
{ include: queues }
end
end
+ belongs_to :job, class_name: 'GoodJob::ActiveJobJob', foreign_key: 'active_job_id', primary_key: 'active_job_id', optional: true, inverse_of: :executions
+
# Get Jobs with given ActiveJob ID
# @!method active_job_id
# @!scope class
# @param active_job_id [String]
# ActiveJob ID