instance method
clear_helpers
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
clear_helpers()
Clears up all existing helpers in this class, only keeping the helper with the same name as this class.
Source
# File actionpack/lib/abstract_controller/helpers.rb, line 157
def clear_helpers
inherited_helper_methods = _helper_methods
self._helpers = Module.new
self._helper_methods = Array.new
inherited_helper_methods.each { |meth| helper_method meth }
default_helper_module! unless anonymous?
end
Defined in actionpack/lib/abstract_controller/helpers.rb line 157
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in AbstractController::Helpers::ClassMethods