# File lib/active_record/persistence.rb, line 70 def delete if persisted? self.class.delete(id) IdentityMap.remove(self) if IdentityMap.enabled? end @destroyed = true freeze end