Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3b1ea3d896
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.849 kb
require 'active_support/core_ext/module/attr_internal'
module ActionView
module Helpers
# This module keeps all methods and behavior in ActionView
# that simply delegates to the controller.
module ControllerHelper #:nodoc:
attr_internal :controller, :request
delegate :request_forgery_protection_token, :params, :session, :cookies, :response, :headers,
:flash, :action_name, :controller_name, :controller_path, :to => :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)
end
end
def logger
controller.logger if controller.respond_to?(:logger)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.