Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 263 Bytes
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__)))
require 'rubygems'
require 'sinatra/base'
require 'datamapper_example'
DataMapper.setup(:default, ENV['DATABASE_URL'] || 'sqlite3://a_datamapper_example.db')
DataMapper.auto_migrate!
run DataMapperExample