diff options
-rw-r--r-- | actionpack/lib/action_controller/components.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/components.rb b/actionpack/lib/action_controller/components.rb index 2d14d6c37f..aeb0272cd1 100644 --- a/actionpack/lib/action_controller/components.rb +++ b/actionpack/lib/action_controller/components.rb @@ -52,11 +52,11 @@ module ActionController #:nodoc: def component_response(options, reuse_response = true) begin ActionController::Flash::FlashHash.avoid_sweep = true - Thread.current[:p] = component_class(options).process(request_for_component(options), reuse_response ? @response : response_for_component) + p = component_class(options).process(request_for_component(options), reuse_response ? @response : response_for_component) ensure ActionController::Flash::FlashHash.avoid_sweep = false end - Thread.current[:p] + p end def component_class(options) |