Module: CanvasInlinePdf::Plugin::AttachmentExtension
- Defined in:
- lib/canvas_inline_pdf/plugin/attachment_extension.rb
Overview
Modifies the inline_content? method of Attachment so that Canvas will render it inline as well. This is relevant for when students look at pdfs within the Modules section.
Instance Method Summary collapse
Instance Method Details
#inline_content? ⇒ Boolean
9 10 11 |
# File 'lib/canvas_inline_pdf/plugin/attachment_extension.rb', line 9 def inline_content? CanvasInlinePdf.previewable?(nil, self) || super # steep:ignore end |