Skip to content

Commit

Permalink
reload templates in development environment only
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomayko committed Feb 15, 2010
1 parent 30c2ef8 commit 171bf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1048,7 +1048,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? }
set :lock, false

set :public, Proc.new { root && File.join(root, 'public') }
Expand Down

0 comments on commit 171bf43

Please sign in to comment.