method

helpers

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: Rails::Engine
helpers() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/engine.rb, line 425
    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
Register or log in to add new notes.