Skip to content

Commit

Permalink
minor elsif/else typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieg Zaharia committed Apr 3, 2012
1 parent 0cc6c5f commit f181d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit f181d7e

Please sign in to comment.