module ActionController::Integration::ControllerCapture::ClassMethods

def clear_last_instantiation!

def clear_last_instantiation!
  self.last_instantiation = nil
end

def new_with_capture(*args)

def new_with_capture(*args)
  controller = new_without_capture(*args)
  self.last_instantiation ||= controller
  controller
end