method

detach

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: DetachMany
detach() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.