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



324
325
326
# File 'lib/action_controller/integration.rb', line 324

def clear_last_instantiation!
  self.last_instantiation = nil
end

#new_with_capture(*args) ⇒ Object



328
329
330
# File 'lib/action_controller/integration.rb', line 328

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