1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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

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') }