From f2f2699af047d90816ef58fcaf59de2acf74a22f Mon Sep 17 00:00:00 2001 From: Patrik Jira Date: Fri, 11 Mar 2016 11:01:11 +0100 Subject: [PATCH] Use OldDebugExceptionsCatcher on jRuby --- lib/raven/integrations/rails.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raven/integrations/rails.rb b/lib/raven/integrations/rails.rb index 428d4bae0..3a505b302 100644 --- a/lib/raven/integrations/rails.rb +++ b/lib/raven/integrations/rails.rb @@ -30,7 +30,7 @@ class Rails < ::Rails::Railtie exceptions_class = ::ActionDispatch::ShowExceptions end unless exceptions_class.nil? - if RUBY_VERSION.to_f < 2.0 + if RUBY_VERSION.to_f < 2.0 || RUBY_PLATFORM == 'java' exceptions_class.send(:include, Raven::Rails::Middleware::OldDebugExceptionsCatcher) else exceptions_class.send(:prepend, Raven::Rails::Middleware::DebugExceptionsCatcher)