Sha256: 31b9a62a4eb939b10cef3186197c7d0b8e929122f8e045d2b42aae9f77d9e835

Contents?: true

Size: 357 Bytes

Versions: 16

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Admin
  module DocumentsHelper
    def material_urls(material, doc)
      lesson = Lcms::Engine::DocumentGenerator.document_presenter.new(doc)
      presenter = Lcms::Engine::DocumentGenerator.material_presenter.new(material, lesson: lesson)
      { pdf: presenter.pdf_url, gdoc: presenter.gdoc_url }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 app/helpers/admin/documents_helper.rb
lcms-engine-0.5.4 app/helpers/admin/documents_helper.rb
lcms-engine-0.5.3 app/helpers/admin/documents_helper.rb
lcms-engine-0.5.2 app/helpers/admin/documents_helper.rb
lcms-engine-0.5.1 app/helpers/admin/documents_helper.rb
lcms-engine-0.5.0 app/helpers/admin/documents_helper.rb
lcms-engine-0.4.2 app/helpers/admin/documents_helper.rb
lcms-engine-0.4.1 app/helpers/admin/documents_helper.rb
lcms-engine-0.4.0 app/helpers/admin/documents_helper.rb
lcms-engine-0.3.1 app/helpers/admin/documents_helper.rb
lcms-engine-0.1.4 app/helpers/admin/documents_helper.rb
lcms-engine-0.3.0 app/helpers/admin/documents_helper.rb
lcms-engine-0.1.3 app/helpers/admin/documents_helper.rb
lcms-engine-0.2.0 app/helpers/admin/documents_helper.rb
lcms-engine-0.1.2 app/helpers/admin/documents_helper.rb
lcms-engine-0.1.0 app/helpers/admin/documents_helper.rb