Sha256: ba91d95f152c137bab6f2c250171c642f10c23c08f83ef4847d36cfb29a7770e
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
$LOAD_PATH.unshift('lib') require 'data_mapper' if ENV['ADAPTER'] == 'sqlite3' DataMapper::Database.setup do adapter 'sqlite3' database 'data_mapper_1.db' log_stream 'example.log' log_level Logger::DEBUG end else DataMapper::Database.setup do adapter 'mysql' host 'localhost' username 'root' database 'data_mapper_1' log_stream 'example.log' log_level Logger::DEBUG end end Dir[File.dirname(__FILE__) + '/spec/models/*.rb'].each do |path| load path end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.1.0 | example.rb |