Module: AbstractController::Helpers
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Exceptions:
| |
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::InfoController,
Rails::MailersController,
Rails::WelcomeController
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::ActiveSupport::Concern
|
|
Defined in: | actionpack/lib/abstract_controller/helpers.rb |
Class Method Summary
::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. |
Instance Method Summary
DSL Calls
included
[ GitHub ]9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# File 'actionpack/lib/abstract_controller/helpers.rb', line 9
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 39
def _helpers self.class._helpers end