require File.dirname(__FILE__) + '/active_wrapper/gems' ActiveWrapper::Gems.activate %w(activerecord) require 'active_record' require 'fileutils' require 'logger' require 'yaml' $:.unshift File.dirname(__FILE__) + '/active_wrapper' require 'db' require 'log' module ActiveWrapper class < File.dirname($0), :env => options[:env] || env, :log => options[:env] || env }.merge(options.reject { |k, v| v.nil? }) db = Db.new(options) log = Log.new(options) [ db, log ] end end end ActiveRecord::Base.default_timezone = :utc