explicitly require airbrake middleware if it is configured.... i should not have to do this however

This commit is contained in:
Maxwell Salzberg 2012-01-22 11:06:18 -08:00
parent 1d8dbdd8d8
commit 25a15259bc
2 changed files with 5 additions and 1 deletions

View file

@ -35,7 +35,7 @@ Diaspora::Application.configure do
# Disable Rails's static asset server
# In production, Apache or nginx will already do this
config.serve_static_assets = false
config.serve_static_assets = true
# Enable serving of images, stylesheets, and javascripts from an asset server

View file

@ -4,7 +4,11 @@
if AppConfig[:airbrake_api_key].present?
require 'airbrake'
puts "in airbrake"
Airbrake.configure do |config|
config.api_key = AppConfig[:airbrake_api_key]
end
Rails.application.config.middleware.insert_before 1, Airbrake::Rack
end