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:
parent
f8abf619a4
commit
d448bae4ec
1 changed files with 1 additions and 0 deletions
|
@ -658,6 +658,7 @@ module Sinatra
|
|||
def initialize
|
||||
super
|
||||
@default_layout = :layout
|
||||
@preferred_extension = nil
|
||||
end
|
||||
|
||||
def erb(template, options = {}, locals = {}, &block)
|
||||
|
|
Loading…
Reference in a new issue