instance method
add_template_helper
Ruby on Rails 6.0.6
Since v3.0.20 Last seen in v6.0.6 PrivateSignature
add_template_helper(mod)
Makes all the (instance) methods in the helper module available to templates rendered through this controller.
Parameters
-
module- The module to include into the current helper module for the class
Parameters
-
modreq
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 180
def add_template_helper(mod)
_helpers.module_eval { include mod }
end
Defined in actionpack/lib/abstract_controller/helpers.rb line 180
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Helpers::ClassMethods