instance method
helpers
Ruby on Rails 4.2.9
Since v3.1.12Signature
helpers()
Returns a module with all the helpers defined for the engine.
Source
# File railties/lib/rails/engine.rb, line 482
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.send(:include, mod)
end
helpers
end
end
Defined in railties/lib/rails/engine.rb line 482
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine