Browse files

config.ru now uses init file again

  • Loading branch information...
1 parent bc80095 commit c7dc71b469c0daf0ad63e2ea747ddfa7cc8238dd @ajsharp committed Jan 18, 2010
Showing with 10 additions and 9 deletions.
  1. +1 −8 config.ru
  2. +9 −0 init.rb
  3. +0 −1 lib/request_lumberjack/logged_response.rb
View
9 config.ru
@@ -1,11 +1,4 @@
-Bundler.require_env
-require File.expand_path(File.join(File.dirname(__FILE__), 'lib', 'request_lumberjack'))
-
-DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/request_lumberjack.sqlite")
-DataMapper.auto_upgrade!
-
-RequestLumberjack::App.set :environment, ENV["RACK_ENV"] || :production
-
+require 'init'
run RequestLumberjack.app
# vim:ft=ruby
View
9 init.rb
@@ -0,0 +1,9 @@
+require File.expand_path(File.dirname(__FILE__)) + '/vendor/gems/environment'
+
+Bundler.require_env
+require File.expand_path(File.join(File.dirname(__FILE__), 'lib', 'request_lumberjack'))
+
+DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/request_lumberjack.sqlite")
+DataMapper.auto_upgrade!
+
+RequestLumberjack::App.set :environment, ENV["RACK_ENV"] || :production
View
1 lib/request_lumberjack/logged_response.rb
@@ -1,6 +1,5 @@
require 'dm-core'
require 'dm-validations'
-require 'dm-types'
module RequestLumberjack

0 comments on commit c7dc71b

Please sign in to comment.