Permalink
Browse files

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

  • Loading branch information...
1 parent 726feeb commit 78554ffe912e4c1f4f9ae221452dbdb0723f2f3a @rkh committed Sep 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -1107,7 +1107,7 @@ class << self
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') }

0 comments on commit 78554ff

Please sign in to comment.