Always reload templates on Ruby 1.8.6, avoids memory leak. Fixes GH #45.
This commit is contained in:
parent
726feeb4ee
commit
78554ffe91
|
@ -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') }
|
||||
|
|
Loading…
Reference in New Issue