Method: ActiveSupport::IsolatedExecutionState.share_with
- Defined in:
- activesupport/lib/active_support/isolated_execution_state.rb
.share_with(other) ⇒ Object
59 60 61 62 63 64 |
# File 'activesupport/lib/active_support/isolated_execution_state.rb', line 59 def share_with(other) # Action Controller streaming spawns a new thread and copy thread locals. # We do the same here for backward compatibility, but this is very much a hack # and streaming should be rethought. context.active_support_execution_state = other.active_support_execution_state.dup end |