Sha256: 39b72891389f307e27dbc0eb28f187607b4f8955ce50439d6a820c1827fbd250

Contents?: true

Size: 255 Bytes

Versions: 2

Compression:

Stored size: 255 Bytes

Contents

module OrderReporting
  RecurringReportJob = Struct.new(:scheduler, :report, :options)

  class RecurringReportDelayedJob < RecurringReportJob
    def perform
      report.send_report
    ensure
      scheduler.schedule(report, options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 app/jobs/order_reporting/recurring_report_delayed_job.rb
spree_order_reporting-0.0.1 app/jobs/order_reporting/recurring_report_delayed_job.rb