From d448bae4ec5c507a38322c886bc21598ff2eae00 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Wed, 19 Mar 2014 18:49:09 +0530 Subject: [PATCH] Initialize Templates::ContentTyped @preferred_extension in to nil to avoid ruby warning about it not being initialized. --- lib/sinatra/base.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sinatra/base.rb b/lib/sinatra/base.rb index 5a0fb5df..e21aa04f 100644 --- a/lib/sinatra/base.rb +++ b/lib/sinatra/base.rb @@ -658,6 +658,7 @@ module Sinatra def initialize super @default_layout = :layout + @preferred_extension = nil end def erb(template, options = {}, locals = {}, &block)