instance method
key
Ruby on Rails 6.1.7.10
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 69
def key
"variants/#{blob.key}/#{Digest::SHA256.hexdigest(variation.key)}"
end
Defined in activestorage/app/models/active_storage/variant.rb line 69
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Variant