Merge pull request #829 from chastell/warning_fix

Ruby warning fix in Templates#compile_template
This commit is contained in:
Konstantin Haase 2014-01-20 04:55:48 -08:00
commit 0b462a0612
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ module Sinatra
@preferred_extension = engine.to_s
find_template(views, data, template) do |file|
path ||= file # keep the initial path rather than the last one
if found = File.exists?(file)
if found = File.exist?(file)
path = file
break
end