Module: Poro::Modelify::InstanceMethods

Defined in:
lib/poro/modelify.rb

Overview

These methods are addes as instance methods when including Modelify. See Modelify for more information.

Instance Method Summary collapse

Instance Method Details

#contextObject

Return the context instance for this object.



71
72
73
# File 'lib/poro/modelify.rb', line 71

def context
  return Context.fetch(self)
end

#removeObject

Remove the given object from persistent storage.



66
67
68
# File 'lib/poro/modelify.rb', line 66

def remove
  return context.remove(self)
end

#saveObject

Save the given object to persistent storage.



61
62
63
# File 'lib/poro/modelify.rb', line 61

def save
  return context.save(self)
end