Module: ActionController::Integration::ControllerCapture::ClassMethods

Defined in:
lib/action_controller/integration.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#clear_last_instantiation!Object



422
423
424
# File 'lib/action_controller/integration.rb', line 422

def clear_last_instantiation!
  self.last_instantiation = nil
end

#new_with_capture(*args) ⇒ Object



426
427
428
429
430
# File 'lib/action_controller/integration.rb', line 426

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