1
0
Fork 0
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:
Ryan Tomayko 2008-08-31 01:52:35 -07:00
parent 905a76583e
commit 1add9fc9f6

View file

@ -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