method

load_plugins

load_plugins()
public

Loads all plugins in config.plugin_paths. plugin_paths defaults to vendor/plugins but may also be set to a list of paths, such as

  config.plugin_paths = ['lib/plugins', 'vendor/plugins']

Each plugin discovered in plugin_paths is initialized:

  • add its lib directory, if present, to the beginning of the load path
  • evaluate init.rb if present

After all plugins are loaded, duplicates are removed from the load path.