Sha256: d9391c87f629716dbea584a1c865286cea8fa7e95be012093101a1a48716ef56
Contents?: true
Size: 452 Bytes
Versions: 79
Compression:
Stored size: 452 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
79 entries across 76 versions & 8 rubygems