Fix render_widget for controllers

pull/6827/head
Tim Felgentreff 14 years ago
parent 5d243d1f75
commit 2e13bf810f
  1. 4
      lib/widget.rb

@ -30,8 +30,8 @@ class Widget < ActionView::Base
i.output_buffer = ""
end
i._content_for = @_content_for
i.controller = respond_to? :controller ? controller : self
i.render_with_options(options, &block).html_safe
i.controller = respond_to?(:controller) ? controller : self
i.render_with_options(options, &block)
end
end
end

Loading…
Cancel
Save