Module: ActiveModelCachers::Hook::OnModelDelete::InstanceMethods

Defined in:
lib/active_model_cachers/hook/on_model_delete.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject


7
8
9
10
11
# File 'lib/active_model_cachers/hook/on_model_delete.rb', line 7

def delete
  self.class.delete(id, self) if persisted?
  @destroyed = true
  freeze
end