class DocumentExporter::PDF::StudentMaterial

Public Instance Methods

export() click to toggle source
# File lib/document_exporter/pdf/student_material.rb, line 6
def export
  pdf = CombinePDF.new

  scope = @document.student_materials.where(id: included_materials)
  material_ids = ordered_materials scope.pluck(:id)
  pdf = combine_pdf_for pdf, material_ids
  pdf.to_pdf
end