Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 259 Bytes
require 'rubygems'
require 'sinatra'
require 'active_record'
require 'models'
configure do
database = YAML.load_file 'config/database.yml'
environment = Sinatra::Application.environment
ActiveRecord::Base.establish_connection database[environment]
end