Permalink
Browse files

This does not need to be thread local (thanks skaes).

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 7afaa6e commit 339fff7950bbec9936805627b5bad9ec51eb2c14 Scott Barron committed Nov 10, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/components.rb
@@ -52,11 +52,11 @@ def render_component_as_string(options) #:doc:
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)

0 comments on commit 339fff7

Please sign in to comment.