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