data_mapper.rb

Path: lib/data_mapper.rb
Last Update: Thu Jul 01 03:33:16 +0000 2010

This file begins the loading sequence.

Quick Overview:

  • Requires set, fastthread, support libs, and base
  • Sets the applications root and environment for compatibility with rails or merb
  • Checks for the database.yml and loads it if it exists
  • Sets up the database using the config from the yaml file or from the environment

*

Required files

date   time   rubygems   yaml   set   fastthread   validatable   data_mapper/support/object   data_mapper/support/blank   data_mapper/support/enumerable   data_mapper/support/symbol   data_mapper/support/string   data_mapper/support/silence   data_mapper/support/inflector   data_mapper/support/errors   data_mapper/support/typed_set   data_mapper/database   data_mapper/persistence   data_mapper/base   data_mapper/types/string  

Constants

DM_PLUGINS_ROOT = (File.dirname(__FILE__) + '/../plugins')
DM_APP_ROOT = application_root || Dir::pwd

[Validate]