Created
March 14, 2009 06:58
-
-
Save tooky/79000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
require 'activerecord' | |
configure :development do | |
set :db, {:adapter => 'sqlite3', :dbfile => 'shout.dev.sqlite3.db'} | |
end | |
configure :production do | |
set :db, {:adapter => 'sqlite3', :dbfile => 'shout.sqlite3.db'} | |
end | |
configure :testing do | |
set :db, {:adapter => 'sqlite3', :dbfile => ':memory:'} | |
end | |
configure do | |
ActiveRecord::Base.establish_connection(options.db) | |
end | |
class Layout < ActiveRecord::Base; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment