mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Avoid instance variable @output_buffer not initialized
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
b462952886
commit
59c7b0c23a
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,7 @@ module ActionView #:nodoc:
|
|||
end
|
||||
|
||||
def initialize(lookup_context = nil, assigns_for_first_render = {}, controller = nil, formats = nil) #:nodoc:
|
||||
@config = nil
|
||||
@config = nil
|
||||
@assigns = assigns_for_first_render.each { |key, value| instance_variable_set("@#{key}", value) }
|
||||
@helpers = self.class.helpers || Module.new
|
||||
|
||||
|
@ -212,6 +212,7 @@ module ActionView #:nodoc:
|
|||
@_config = ActiveSupport::InheritableOptions.new(controller.config) if controller && controller.respond_to?(:config)
|
||||
@_content_for = Hash.new { |h,k| h[k] = ActiveSupport::SafeBuffer.new }
|
||||
@_virtual_path = nil
|
||||
@output_buffer = nil
|
||||
|
||||
@lookup_context = lookup_context.is_a?(ActionView::LookupContext) ?
|
||||
lookup_context : ActionView::LookupContext.new(lookup_context)
|
||||
|
|
Loading…
Reference in a new issue