instance method
video?
Ruby on Rails 8.1.3.1
Since v5.2.8.1Signature
video?()
Returns true if the content_type of this blob is in the video range, like video/mp4.
Source
# File activestorage/app/models/active_storage/blob.rb, line 222
def video?
content_type&.start_with?("video")
end
Defined in activestorage/app/models/active_storage/blob.rb line 222
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob