module ActionView::Helpers::ControllerHelper
def assign_controller(controller)
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) @_default_form_builder = controller.default_form_builder if controller.respond_to?(:default_form_builder) end end
def logger
def logger controller.logger if controller.respond_to?(:logger) end
def respond_to?(method_name, include_private = false)
def respond_to?(method_name, include_private = false) return controller.respond_to?(method_name) if CONTROLLER_DELEGATES.include?(method_name.to_sym) super end