提交 f181d7e3 编写于 作者: T Tieg Zaharia

minor elsif/else typo fix

上级 0cc6c5fe
......@@ -200,7 +200,7 @@ def initialize(context = nil, assigns = {}, controller = nil, formats = nil) #:n
# TODO Provide a new API for AV::Base and deprecate this one.
if context.is_a?(ActionView::Renderer)
@view_renderer = context
elsif
else
lookup_context = context.is_a?(ActionView::LookupContext) ?
context : ActionView::LookupContext.new(context)
lookup_context.formats = formats if formats
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册