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