Module: ActionView::Helpers::ControllerHelper

Included in:
ActionView::Helpers
Defined in:
actionpack/lib/action_view/helpers/controller_helper.rb

Overview

This module keeps all methods and behavior in ActionView that simply delegates to the controller.

Instance Method Summary collapse

Instance Method Details

#assign_controller(controller) ⇒ Object


15
16
17
18
19
20
# File 'actionpack/lib/action_view/helpers/controller_helper.rb', line 15

def assign_controller(controller)
  if @_controller = controller
    @_request = controller.request if controller.respond_to?(:request)
    @_config  = controller.config.inheritable_copy if controller.respond_to?(:config)
  end
end