aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-06-14 12:09:03 +0200
committerPiotr Sarnacki <drogus@gmail.com>2012-08-28 10:51:04 +0200
commit9e731f0d8ac98055f510d1474ad652936074f204 (patch)
tree3372dd8cb72ed6c4bba7f4fa3bd6e963460bd445 /actionpack
parent731bb2fe6815ac6a1888d9fb54bb1782e4768c0b (diff)
downloadrails-9e731f0d8ac98055f510d1474ad652936074f204.tar.gz
rails-9e731f0d8ac98055f510d1474ad652936074f204.tar.bz2
rails-9e731f0d8ac98055f510d1474ad652936074f204.zip
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]
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/base.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index 749332eca7..e51c75d73a 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -178,8 +178,6 @@ module ActionView #: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