Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 2970

Show
Ignore:
Timestamp:
11/10/05 12:59:22 (3 years ago)
Author:
htonl
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/components.rb

    r2749 r2970  
    5353        begin 
    5454          ActionController::Flash::FlashHash.avoid_sweep = true 
    55           Thread.current[:p] = component_class(options).process(request_for_component(options), reuse_response ? @response : response_for_component) 
     55          p = component_class(options).process(request_for_component(options), reuse_response ? @response : response_for_component) 
    5656        ensure 
    5757          ActionController::Flash::FlashHash.avoid_sweep = false 
    5858        end 
    59         Thread.current[:p] 
     59        p 
    6060      end 
    6161