instance method
helpers
Ruby on Rails 8.1.2
Since v3.1.12Signature
helpers()
Returns a module with all the helpers defined for the engine.
Source
# File railties/lib/rails/engine.rb, line 499
def helpers
@helpers ||= begin
helpers = Module.new
AbstractController::Helpers.helper_modules_from_paths(helpers_paths).each do |mod|
helpers.include(mod)
end
helpers
end
end
Defined in railties/lib/rails/engine.rb line 499
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine