lib/delayed/status_job.rb in mail_manager-0.1.1 vs lib/delayed/status_job.rb in mail_manager-0.1.2
- old
+ new
@@ -14,10 +14,10 @@
# #Delayed::Mailer.deliver_exception_notification(self,error,notify_email) unless notify_email.blank?
# logger.error "* [JOB] #{name}(#{id}) failed with #{error.class.name}: #{error.message} - #{attempts} failed attempts"
# end
# end
# end
-class Delayed::StatusJob < Delayed::Job
+class ::Delayed::StatusJob < ::Delayed::Job
def perform
- Delayed::StatusJob.enqueue ::StatusJob.new, run_at: 1.minute.from_now
+ ::Delayed::StatusJob.enqueue ::Delayed::StatusJob.new, run_at: 1.minute.from_now
end
end