Method: Refile::Attacher#delete!

Defined in:
lib/refile/attacher.rb

#delete!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



76
77
78
79
80
81
82
83
84
# File 'lib/refile/attacher.rb', line 76

def delete!
  if cached?
    cache.delete(cache_id)
    @cache_id = nil
    @cache_file = nil
  end
  store.delete(id) if id
  self.id = nil
end