Sha256: 60102bb9ccd161990c54ff837e1b807060b6540ba2520fa8711e74786f172185

Contents?: true

Size: 849 Bytes

Versions: 223

Compression:

Stored size: 849 Bytes

Contents

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

Version data entries

223 entries across 197 versions & 25 rubygems

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/actionview-4.2.6/lib/action_view/helpers/controller_helper.rb
actionview-4.1.15 lib/action_view/helpers/controller_helper.rb
actionview-4.2.6 lib/action_view/helpers/controller_helper.rb
actionview-4.1.15.rc1 lib/action_view/helpers/controller_helper.rb
actionview-4.2.6.rc1 lib/action_view/helpers/controller_helper.rb
actionpack-3.2.22.2 lib/action_view/helpers/controller_helper.rb
actionview-4.1.14.2 lib/action_view/helpers/controller_helper.rb
actionview-4.2.5.2 lib/action_view/helpers/controller_helper.rb
activejob-lock-0.0.2 rails/actionview/lib/action_view/helpers/controller_helper.rb
actionview-4.2.5.1 lib/action_view/helpers/controller_helper.rb
actionview-4.1.14.1 lib/action_view/helpers/controller_helper.rb
actionpack-3.2.22.1 lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/controller_helper.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/controller_helper.rb
actionview-4.1.14 lib/action_view/helpers/controller_helper.rb
actionview-4.2.5 lib/action_view/helpers/controller_helper.rb