Class: Spree::MediaUsageReference

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Attributes, ActiveModel::Model
Defined in:
app/models/spree/media_usage_reference.rb

Overview

One place a media file is in use. Ephemeral — computed by Spree::Media::Usage from the blob's attachment rows, never persisted.

A file is "in use" more broadly than a media row suggests: reusing a file on another product shares its blob, and so does picking it for a category or store image, so the honest answer to "what breaks if I delete this" comes from the blob's attachments rather than from this row's own owner.