Sha256: 6335362b5e1c7b79f9ce54c4f7ab2b4d2c77123d6b12302b645f079bed771200
Contents?: true
Size: 380 Bytes
Versions: 9
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module DocumentExporter module Pdf class StudentMaterial < Pdf::Base 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 end end end
Version data entries
9 entries across 9 versions & 1 rubygems