Module: ActionController::Rendering
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
API ,
Base ,
DataStreaming ,
::ActionView::TestCase::TestController ,
Rails::ApplicationController,
Rails::InfoController,
Rails::MailersController,
Rails::WelcomeController
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionpack/lib/action_controller/metal/rendering.rb |
Constant Summary
-
RENDER_FORMATS_IN_PRIORITY =
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 7[:body, :plain, :html]
Class Method Summary
::ActiveSupport::Concern
- Extended
Instance Method Summary
- #render_to_body(options = {})
-
#render_to_string
Overwrite render_to_string because body can now be set to a
::Rack
body.
Instance Method Details
#render_to_body(options = {})
[ GitHub ]# File 'actionpack/lib/action_controller/metal/rendering.rb', line 51
def render_to_body( = {}) super || _render_in_priorities( ) || " " end
#render_to_string
Overwrite render_to_string because body can now be set to a ::Rack
body.
# File 'actionpack/lib/action_controller/metal/rendering.rb', line 40
def render_to_string(*) result = super if result.respond_to?(:each) string = "".dup result.each { |r| string << r } string else result end end