instance method
key
Ruby on Rails 8.0.4
Since v5.2.8.1Signature
key()
Returns a combination key of the blob and the variation that together identifies a specific variant.
Source
# File activestorage/app/models/active_storage/variant.rb, line 73
def key
"variants/#{blob.key}/#{OpenSSL::Digest::SHA256.hexdigest(variation.key)}"
end
Defined in activestorage/app/models/active_storage/variant.rb line 73
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Variant