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
-
#context ⇒ Object
Return the context instance for this object.
-
#remove ⇒ Object
Remove the given object from persistent storage.
-
#save ⇒ Object
Save the given object to persistent storage.
Instance Method Details
#context ⇒ Object
Return the context instance for this object.
71 72 73 |
# File 'lib/poro/modelify.rb', line 71 def context return Context.fetch(self) end |
#remove ⇒ Object
Remove the given object from persistent storage.
66 67 68 |
# File 'lib/poro/modelify.rb', line 66 def remove return context.remove(self) end |
#save ⇒ Object
Save the given object to persistent storage.
61 62 63 |
# File 'lib/poro/modelify.rb', line 61 def save return context.save(self) end |