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

Version Path
lcms-engine-0.5.5 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.5.4 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.5.3 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.5.2 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.5.1 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.5.0 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.4.2 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.4.1 lib/document_exporter/pdf/student_material.rb
lcms-engine-0.4.0 lib/document_exporter/pdf/student_material.rb