Always reload templates on Ruby 1.8.6, avoids memory leak. Fixes GH #45.

This commit is contained in:
Konstantin Haase 2010-09-02 14:18:17 +02:00
parent 726feeb4ee
commit 78554ffe91
1 changed files with 1 additions and 1 deletions

View File

@ -1107,7 +1107,7 @@ module Sinatra
set :app_file, nil
set :root, Proc.new { app_file && File.expand_path(File.dirname(app_file)) }
set :views, Proc.new { root && File.join(root, 'views') }
set :reload_templates, Proc.new { development? }
set :reload_templates, Proc.new { development? or RUBY_VERSION < '1.8.7' }
set :lock, false
set :public, Proc.new { root && File.join(root, 'public') }