instance method
content_type
Ruby on Rails edge
Since edgeReturns the content type of the associated file:
“‘ ActiveStorage::Blob.first.content_type
> “image/png”
“‘
Source
# File activestorage/app/models/active_storage/blob.rb, line 190
Defined in activestorage/app/models/active_storage/blob.rb line 190
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob