Sha256: 2eaa9bf6939fd1bb5dea3cbaf5b96263c97e25d7d7876eb802fa6722a77734d1
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
class NotificationJob < ActiveJob::Base queue_as :default self.queue_adapter = :delayed_job ##we currently log all exceptions to redis. rescue_from(StandardError) do |exception| puts exception.message puts exception.backtrace.join("\n") end def perform(cart_item,instruction_index,notification_index) notification = cart_item.instructions[instruction_index].notifications[notification_index] notification.deliver_all end end
Version data entries
6 entries across 6 versions & 1 rubygems