Initialize Templates::ContentTyped @preferred_extension in to nil to avoid ruby warning about it not being initialized.

This commit is contained in:
Vipul A M 2014-03-19 18:49:09 +05:30
parent f8abf619a4
commit d448bae4ec
1 changed files with 1 additions and 0 deletions

View File

@ -658,6 +658,7 @@ module Sinatra
def initialize
super
@default_layout = :layout
@preferred_extension = nil
end
def erb(template, options = {}, locals = {}, &block)