aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-05-01 19:39:57 +0200
committerJosé Valim <jose.valim@gmail.com>2011-05-01 19:39:57 +0200
commit13df194c002f362556560303da9c73a24ebb189e (patch)
treee3eca086931009829feadb10aafdc6d28570c98b /actionpack/lib/action_view/base.rb
parent8dbee3aba6920edcae20abf3af7f803e528f9ee0 (diff)
downloadrails-13df194c002f362556560303da9c73a24ebb189e.tar.gz
rails-13df194c002f362556560303da9c73a24ebb189e.tar.bz2
rails-13df194c002f362556560303da9c73a24ebb189e.zip
Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats).
Diffstat (limited to 'actionpack/lib/action_view/base.rb')
-rw-r--r--actionpack/lib/action_view/base.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/base.rb b/actionpack/lib/action_view/base.rb
index baa2c5729f..ca0a89c8a5 100644
--- a/actionpack/lib/action_view/base.rb
+++ b/actionpack/lib/action_view/base.rb
@@ -131,7 +131,7 @@ module ActionView #:nodoc:
#
# More builder documentation can be found at http://builder.rubyforge.org.
class Base
- include Helpers, Rendering, ::ERB::Util, Context
+ include Helpers, ::ERB::Util, Context
# Specify the proc used to decorate input tags that refer to attributes with errors.
cattr_accessor :field_error_proc
@@ -186,11 +186,6 @@ module ActionView #:nodoc:
assign(assigns_for_first_render)
self.helpers = Module.new unless self.class.helpers
- # Context vars initialization
- @view_flow = OutputFlow.new
- @output_buffer = nil
- @virtual_path = nil
-
@_config = {}
if @_controller = controller
@_request = controller.request if controller.respond_to?(:request)
@@ -207,6 +202,8 @@ module ActionView #:nodoc:
lookup_context.formats = formats if formats
@view_renderer = ActionView::Renderer.new(lookup_context, controller)
end
+
+ _prepare_context
end
# TODO Is this needed anywhere? Maybe deprecate it?