Method: ActiveStorage::Previewer::MuPDFPreviewer.pdf?

Defined in:
activestorage/lib/active_storage/previewer/mupdf_previewer.rb

.pdf?(content_type) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'activestorage/lib/active_storage/previewer/mupdf_previewer.rb', line 10

def pdf?(content_type)
  Marcel::Magic.child? content_type, "application/pdf"
end