module Poro::Modelify::InstanceMethods
These methods are addes as instance methods when including Modelify
. See Modelify
for more information.
Public Instance Methods
context()
click to toggle source
Return the context instance for this object.
# File lib/poro/modelify.rb, line 71 def context return Context.fetch(self) end
remove()
click to toggle source
Remove the given object from persistent storage.
# File lib/poro/modelify.rb, line 66 def remove return context.remove(self) end
save()
click to toggle source
Save the given object to persistent storage.
# File lib/poro/modelify.rb, line 61 def save return context.save(self) end