Module: Poro::Persistify::ClassMethods

Defined in:
lib/poro/persistify.rb

Instance Method Summary collapse

Instance Method Details

#configure_context(&configuration_block) ⇒ Object

A convenience method to more easily call Context.configure_for_class from within a class decleration.

This was added to ease the transition from existing model based ORMs, and is up for debate. It may be better to directly use Context.configure_for_class.



35
36
37
# File 'lib/poro/persistify.rb', line 35

def configure_context(&configuration_block)
  return Context.configure_for_class(self, &configuration_block)
end