From 1add9fc9f6ba83e73402c228d7a6a67c8850f6e0 Mon Sep 17 00:00:00 2001 From: Ryan Tomayko Date: Sun, 31 Aug 2008 01:52:35 -0700 Subject: [PATCH] add reload option - set false to disable reloading --- lib/sinatra.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra.rb b/lib/sinatra.rb index 98912acd..666b3411 100755 --- a/lib/sinatra.rb +++ b/lib/sinatra.rb @@ -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