module ActionController::Live

def clean_up_thread_locals(locals, thread) # :nodoc:

:nodoc:
Ensure we clean up any thread locals we copied so that the thread can reused.
def clean_up_thread_locals(locals, thread) # :nodoc:
  locals.each { |k, _| thread[k] = nil }
end