123456789_123456789_123456789_123456789_123456789_

Module: ActionController::Rendering

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Base, DataStreaming, ::ActionView::TestCase::TestController, Rails::ApplicationController, Rails::InfoController, Rails::MailersController, Rails::WelcomeController
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Defined in: actionpack/lib/action_controller/metal/rendering.rb

Constant Summary

Class Method Summary

Instance Method Summary

Instance Method Details

#render_to_body(options = {})

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 31

def render_to_body(options = {})
  super || _render_in_priorities(options) || ' '
end

#render_to_string

Overwrite render_to_string because body can now be set to a rack body.

[ GitHub ]

  
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 20

def render_to_string(*)
  result = super
  if result.respond_to?(:each)
    string = ""
    result.each { |r| string << r }
    string
  else
    result
  end
end