method
detach
v7.1.3.2 -
Show latest stable
- Class:
ActiveStorage::Attached::Changes::DetachMany
detach()public
No documentation available.
# File activestorage/lib/active_storage/attached/changes/detach_many.rb, line 11
def detach
if attachments.any?
attachments.delete_all if attachments.respond_to?(:delete_all)
record.attachment_changes.delete(name)
end
end