aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-08-29 13:41:53 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-08-29 13:43:30 +0100
commit6577942b61b98e3bca54c0af3df57f8334b832b9 (patch)
treed60f3ada648328f761a9023bfecfbb80c466dfba /actionpack/lib/action_controller/base.rb
parent85070b5e5679221be0f44ce1886be99432d53dd0 (diff)
downloadrails-6577942b61b98e3bca54c0af3df57f8334b832b9.tar.gz
rails-6577942b61b98e3bca54c0af3df57f8334b832b9.tar.bz2
rails-6577942b61b98e3bca54c0af3df57f8334b832b9.zip
Deprecate render_component.
Please install render_component plugin from http://github.com/rails/render_component/tree/master if your application uses this functionality.
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
-rw-r--r--actionpack/lib/action_controller/base.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 55e1d48949..32c1dcbcaf 100644
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -548,12 +548,16 @@ module ActionController #:nodoc:
@@guard.synchronize { send(method, *arguments) }
end
- response.prepare! unless component_request?
- response
+ send_response
ensure
process_cleanup
end
+ def send_response
+ response.prepare! unless component_request?
+ response
+ end
+
# Returns a URL that has been rewritten according to the options hash and the defined Routes.
# (For doing a complete redirect, use redirect_to).
#