Path: | README |
Last Update: | Mon Jul 30 14:58:32 +0000 2012 |
A plugin for the Merb framework that provides DataMapper access
To use sessions:
Merb::Config.use { |c| c[:session_store] = 'datamapper' }
use_orm :datamapper
Sessions can be configured by a few plugin options:
Repository Blocks are a DataMapper feature, which enables the use of the DataMapper IdentityMap, which can help with certain DataMapper features such as strategic eager loading. Read on www.datamapper.org for more information on these features.
If, for whatever reason, it doesn‘t suit you, it can be disabled via setting the :use_reposity_block option to false.
Merb::Plugins[:merb_datamapper][:use_reposity_block] = false