Permalink
Browse files

Add sequel.

  • Loading branch information...
rgraff committed Apr 19, 2010
1 parent 3eeb602 commit a45f06ece4b3301bce8c6a207ef5598a9cfbd0c7
Showing with 13 additions and 1 deletion.
  1. +2 −1 app.rb
  2. +11 −0 config/init.rb
  3. 0 config/migrations.rb
View
3 app.rb
@@ -1,6 +1,7 @@
require 'rubygems'
require 'sinatra'
+require 'config/init'
get '/hi' do
"Hello World!"
-end
+end
View
@@ -0,0 +1,11 @@
+require 'sinatra/sequel'
+require 'sqlite3'
+
+configure :development do
+ set :database, 'sqlite://tmp/development.sqlite'
+end
+configure :test do
+ set :database, 'sqlite3::memory:'
+end
+
+require 'config/migrations'
View
No changes.

0 comments on commit a45f06e

Please sign in to comment.