Merge pull request #5723 from tiegz/minor_fixes

minor elsif/else typo fix
This commit is contained in:
José Valim 2012-04-03 11:28:14 -07:00
commit 3352e3b610
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ module ActionView #:nodoc:
# 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