123456789_123456789_123456789_123456789_123456789_

Module: AbstractController::Helpers

Class Method Summary

Resolution - Extended

::ActiveSupport::Concern - Extended

class_methods

Define class methods from given block.

included

Evaluate given block in context of base class, so that you can write class macros here.

prepended

Evaluate given block in context of base class, so that you can write class macros here.

append_features, prepend_features

Instance Method Summary

DSL Calls

included

[ GitHub ]

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'actionpack/lib/abstract_controller/helpers.rb', line 12
included do
  class_attribute :_helper_methods, default: Array.new

  # This is here so that it is always higher in the inheritance chain than the
  # definition in lib/action_view/rendering.rb
  redefine_singleton_method(:_helpers) do
    if @_helpers ||= nil
      @_helpers
    else
      superclass._helpers
    end
  end

  self._helpers = define_helpers_module(self)
end

Instance Method Details

#_helpers

[ GitHub ]

  
# File 'actionpack/lib/abstract_controller/helpers.rb', line 28
def _helpers
  self.class._helpers
end