Merge pull request #1061 from BenMorganIO/rack-2-support

Rack 2 Support
This commit is contained in:
Katrina Owen 2015-12-31 13:03:48 -07:00
commit 555d476bf1
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
require 'rack/showexceptions'
begin
require 'rack/show_exceptions'
rescue LoadError
require 'rack/showexceptions'
end
module Sinatra
# Sinatra::ShowExceptions catches all exceptions raised from the app it