instance method
filename
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
filename()
No documentation comment.
Source
# File activestorage/app/models/active_storage/variant.rb, line 93
def filename
if WEB_IMAGE_CONTENT_TYPES.include?(blob.content_type)
blob.filename
else
ActiveStorage::Filename.new("#{blob.filename.base}.png")
end
end
Defined in activestorage/app/models/active_storage/variant.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Variant