mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Merge pull request #1061 from BenMorganIO/rack-2-support
Rack 2 Support
This commit is contained in:
commit
555d476bf1
1 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,8 @@
|
||||||
require 'rack/showexceptions'
|
begin
|
||||||
|
require 'rack/show_exceptions'
|
||||||
|
rescue LoadError
|
||||||
|
require 'rack/showexceptions'
|
||||||
|
end
|
||||||
|
|
||||||
module Sinatra
|
module Sinatra
|
||||||
# Sinatra::ShowExceptions catches all exceptions raised from the app it
|
# Sinatra::ShowExceptions catches all exceptions raised from the app it
|
||||||
|
|
Loading…
Reference in a new issue