Methods

Class/Module Index [+]

Quicksearch

Rails::Plugin::FileSystemLocator

The Rails::Plugin::FileSystemLocator will try to locate plugins by examining the directories in the paths given in configuration.plugin_paths. Any plugins that can be found are returned in a list.

The criteria for a valid plugin in this case is found in Rails::Plugin#valid?, although other subclasses of Rails::Plugin::Locator can of course use different conditions.

Public Instance Methods

plugins() click to toggle source

Returns all the plugins which can be loaded in the filesystem, under the paths given by configuration.plugin_paths.

# File lib/rails/plugin/locator.rb, line 42
def plugins
  initializer.configuration.plugin_paths.flatten.inject([]) do |plugins, path|
    plugins.concat locate_plugins_under(path)
    plugins
  end.flatten
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.