instance method
exist?
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
exist?(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activestorage/lib/active_storage/service/s3_service.rb, line 72
def exist?(key)
instrument :exist, key: key do |payload|
answer = object_for(key).exists?
payload[:exist] = answer
answer
end
end
Defined in activestorage/lib/active_storage/service/s3_service.rb line 72
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::S3Service