method

detach

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: DetachOne
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_one.rb, line 11
    def detach
      if attachment.present?
        attachment.delete
        reset
      end
    end
Register or log in to add new notes.