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