Method: ActiveStorage::Preview#key

Defined in:
activestorage/app/models/active_storage/preview.rb

#keyObject

Returns a combination key of the blob and the variation that together identifies a specific variant.



77
78
79
80
81
82
83
# File 'activestorage/app/models/active_storage/preview.rb', line 77

def key
  if processed?
    presentation.key
  else
    raise UnprocessedError
  end
end