class method
self.pdf?
Ruby on Rails 7.2.3
Since v7.2.3Signature
self.pdf?(content_type)
No documentation comment.
Parameters
-
content_typereq
Source
# File activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb, line 10
def pdf?(content_type)
Marcel::Magic.child? content_type, "application/pdf"
end
Defined in activestorage/lib/active_storage/previewer/poppler_pdf_previewer.rb line 10
· View on GitHub
· Improve this page
· Find usages on GitHub