1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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

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