instance method key

Ruby on Rails 7.2.3

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

key()

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

Source
# File activestorage/app/models/active_storage/preview.rb, line 77
  def key
    if processed?
      presentation.key
    else
      raise UnprocessedError
    end
  end

Defined in activestorage/app/models/active_storage/preview.rb line 77 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Preview

Type at least 2 characters to search.

↑↓ navigate · open · esc close