instance method
helpers
Ruby on Rails 3.1.12
Since v3.1.12Signature
helpers()
No documentation comment.
Source
# File railties/lib/rails/engine.rb, line 426
def helpers
@helpers ||= begin
helpers = Module.new
helpers_paths = if config.respond_to?(:helpers_paths)
config.helpers_paths
else
paths["app/helpers"].existent
end
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 426
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Engine