Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 489 Bytes
require 'rubygems'
require 'haml'
require 'sass'
require 'dm-core'
require 'dm-timestamps'
require 'dm-validations'
require 'bcrypt'
require 'warden'
require 'sinatra'
require 'nokogiri'
require 'builder'
require 'uv'
#Really, how the fuck would you do this another way ? =/
Dir.glob('models/*.rb') { |x| require x }
Dir.glob('lib/*.rb') { |x| require x }
BASE_PATH = File.expand_path(File.dirname(__FILE__))
DataMapper.setup :default, "sqlite3:#{File.join(BASE_PATH, 'data.sqlite')}"