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

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

View file

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