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:
commit
0b462a0612
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue