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:
parent
726feeb4ee
commit
78554ffe91
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue