Sha256: d82101a50bfe1beddcbebabef25d4af4785fd55a52430b6506ee41a4c93bd4f5
Contents?: true
Size: 415 Bytes
Versions: 9
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true module DocumentExporter module Pdf class TeacherMaterial < Pdf::Base def export content = super pdf = CombinePDF.parse(content) scope = @document.teacher_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