module Poro::Modelify::ClassMethods
These methods are added as class methods when including Modelify
. See Modelify
for more information.
Public Instance Methods
context()
click to toggle source
Get the context instance for this class.
# File lib/poro/modelify.rb, line 51 def context return Context.fetch(self) end
fetch(id)
click to toggle source
Find the object for the given id.
# File lib/poro/modelify.rb, line 46 def fetch(id) return context.fetch(id) end