class ActiveStorage::Attached::Changes::DetachMany

:nodoc:

def detach

def detach
  if attachments.any?
    attachments.delete_all if attachments.respond_to?(:delete_all)
    record.attachment_changes.delete(name)
  end
end

def initialize(name, record, attachments)

def initialize(name, record, attachments)
  @name, @record, @attachments = name, record, attachments
end