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