Permalink
Browse files

move AR::connectionmanagement to middleware.rb and remove unused midd…

…leware
  • Loading branch information...
mikesea committed Jul 14, 2012
1 parent bd4e49c commit 4622fbbee149c5ceb3032dc309dac10946562ff0
Showing with 2 additions and 17 deletions.
  1. +1 −2 config.ru
  2. +1 −15 config/middleware.rb
View
@@ -5,5 +5,4 @@ require './config/application'
root = File.expand_path(File.dirname(__FILE__))
WDSinatra::AppLoader.server(root)
-run Sinatra::Application
-use ActiveRecord::ConnectionAdapters::ConnectionManagement
+run Sinatra::Application
View
@@ -1,16 +1,2 @@
-if defined?(NewRelic)
- if RACK_ENV == 'development'
- require 'new_relic/rack/developer_mode'
- use NewRelic::Rack::DeveloperMode
- end
- if NewRelic::Control.instance.agent_enabled?
- LOGGER.info "New Relic monitoring enabled App name: '#{NewRelic::Control.instance['app_name']}', Mode: '#{NewRelic::Control.instance.app}'"
- end
-end
-
-# Use this middleware with AR to avoid threading issues.
-# require 'active_record'
-# use ActiveRecord::ConnectionAdapters::ConnectionManagement
-
-use Airbrake::Rack if defined?(Airbrake)
+use ActiveRecord::ConnectionAdapters::ConnectionManagement
use Rack::ContentLength

0 comments on commit 4622fbb

Please sign in to comment.