Browse files

minor elsif/else typo fix

  • Loading branch information...
1 parent 0cc6c5f commit f181d7e3ef7bd2e951b748dbbd607d05e36b6f85 @tiegz tiegz committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/base.rb
View
2 actionpack/lib/action_view/base.rb
@@ -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

0 comments on commit f181d7e

Please sign in to comment.