Fixes problem in development where reloading overrides custom errors

This commit is contained in:
bmizerany 2008-05-18 14:53:19 -07:00
parent 08b1452a37
commit ce673fa4d9
1 changed files with 2 additions and 2 deletions

View File

@ -1110,10 +1110,10 @@ module Sinatra
# and then reload the application source file. This occurs
# automatically before each request is processed in development.
def reload!
@reloading = true
@pipeline = nil
clearables.each(&:clear)
load_default_configuration!
@pipeline = nil
@reloading = true
Kernel.load $0
@reloading = false
end