Skip to content

Instantly share code, notes, and snippets.

View nickhammond's full-sized avatar

Nick Hammond nickhammond

View GitHub Profile
@nickhammond
nickhammond / application.rb
Created June 22, 2012 22:48 — forked from steve9001/application.rb
Rails middleware to provide information about errors during :js => true requests in test.log and to STDERR
module MyApp
class Application < Rails::Application
if Rails.env == 'test'
require 'diagnostic'
config.middleware.use(MyApp::DiagnosticMiddleware)
end
end
end