Module: Memoh::Models::Concerns::Persistence

Extended by:
ActiveSupport::Concern
Included in:
SSHMemo
Defined in:
lib/memoh/models/concerns/persistence.rb

Overview

:nodoc:

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#deleteObject



43
44
45
# File 'lib/memoh/models/concerns/persistence.rb', line 43

def delete
  self.class.persistence_manager.delete(self)
end

#saveObject



35
36
37
# File 'lib/memoh/models/concerns/persistence.rb', line 35

def save
  self.class.persistence_manager.create(self)
end

#updateObject



39
40
41
# File 'lib/memoh/models/concerns/persistence.rb', line 39

def update
  self.class.persistence_manager.update(self)
end