instance method
video?
Ruby on Rails 8.0.4
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 201
def video?
content_type.start_with?("video")
end
Defined in activestorage/app/models/active_storage/blob.rb line 201
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob