Sha256: 47e6423bd21f25b8037d38bf864d713902b47d36f803eb7b82b04277887a7e66
Contents?: true
Size: 451 Bytes
Versions: 71
Compression:
Stored size: 451 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 attachables [] 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
71 entries across 71 versions & 7 rubygems