Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove comment about getting rid of old AV::Base.new behavior

I've talked to José Valim, who added this comment, and there is no need
to remove old API. It's good to have a simple way to instantiate
ActionView::Base, by just passing view paths as a first argument,
instead of constructing LookupContext and then the Renderer.

[ci skip]
  • Loading branch information...
commit 9e731f0d8ac98055f510d1474ad652936074f204 1 parent 731bb2f
Piotr Sarnacki drogus authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  actionpack/lib/action_view/base.rb
2  actionpack/lib/action_view/base.rb
View
@@ -178,8 +178,6 @@ def assign(new_assigns) # :nodoc:
def initialize(context = nil, assigns = {}, controller = nil, formats = nil) #:nodoc:
@_config = ActiveSupport::InheritableOptions.new
- # Handle all these for backwards compatibility.
- # TODO Provide a new API for AV::Base and deprecate this one.
if context.is_a?(ActionView::Renderer)
@view_renderer = context
else
Please sign in to comment.
Something went wrong with that request. Please try again.