Module: AbstractController::Helpers
| Relationships & Source Files | |
| Namespace Children | |
|
Modules:
| |
| Extension / Inclusion / Inheritance Descendants | |
|
Included In:
::ActionController::Base,
::ActionController::ContentSecurityPolicy,
::ActionController::Helpers,
::ActionController::RequestForgeryProtection,
::ActionMailer::Base,
::ActionView::TestCase,
::ActionView::TestCase::Behavior,
::ActionView::TestCase::TestController,
::Rails::ApplicationController,
::Rails::HealthController,
::Rails::InfoController,
::Rails::MailersController,
::Rails::PwaController,
::Rails::WelcomeController
| |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
| Defined in: | actionpack/lib/abstract_controller/helpers.rb |
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