Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.259 kB
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
Jump to Line
Something went wrong with that request. Please try again.