mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
add reload option - set false to disable reloading
This commit is contained in:
parent
905a76583e
commit
1add9fc9f6
1 changed files with 1 additions and 1 deletions
|
@ -1186,7 +1186,7 @@ module Sinatra
|
|||
# Rack compatible request invocation interface.
|
||||
def call(env)
|
||||
run_safely do
|
||||
reload! if development?
|
||||
reload! if development? && (options.reload != false)
|
||||
pipeline.call(env)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue