diff options
Diffstat (limited to 'actionpack/lib/action_controller/components.rb')
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 877d8888bd..6371a4255d 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -5,8 +5,9 @@ module ActionController #:nodoc: base.helper do def render_component(options) @controller.logger.info("Start rendering component (#{options.inspect}): ") - @controller.send(:component_response, options).body + result = @controller.send(:component_response, options).body @controller.logger.info("\n\nEnd of component rendering") + return result end end end @@ -15,8 +16,9 @@ module ActionController #:nodoc: def render_component(options = {}) #:doc: response = component_response(options) logger.info "Rendering component (#{options.inspect}): " - render_text(response.body, response.headers["Status"]) + result = render_text(response.body, response.headers["Status"]) logger.info("\n\nEnd of component rendering") + return result end private |