Module: Admin::DocumentsHelper

Defined in:
app/helpers/admin/documents_helper.rb

Instance Method Summary collapse

Instance Method Details

#material_urls(material, doc) ⇒ Object



5
6
7
8
9
# File 'app/helpers/admin/documents_helper.rb', line 5

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