Sha256: b7a9f836eca4236ffc35a365b3713f17d603cb41190c876489bfc11aa3cf4ab2
Contents?: true
Size: 413 Bytes
Versions: 5
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module ActiveStorage class Attached::Changes::DeleteMany #:nodoc: attr_reader :name, :record def initialize(name, record) @name, @record = name, record end def attachments ActiveStorage::Attachment.none end def blobs ActiveStorage::Blob.none end def save record.public_send("#{name}_attachments=", []) end end end
Version data entries
5 entries across 5 versions & 1 rubygems