Class: Spree::Reports::GenerateJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/spree/reports/generate_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(report_id) ⇒ Object



6
7
8
9
# File 'app/jobs/spree/reports/generate_job.rb', line 6

def perform(report_id)
  report = Spree::Report.find(report_id)
  report.generate
end