[#298] Add vendor/chiliproject_plugins to the load path

Contributed by Holger Just
This commit is contained in:
Eric Davis 2011-10-14 14:29:52 -07:00
parent 489566a39e
commit 13250b7223
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,9 @@ Rails::Initializer.run do |config|
# It will automatically turn deliveries on
config.action_mailer.perform_deliveries = false
# Insert vendor/chiliproject_plugins at the top of the plugin load paths
config.plugin_paths.insert(0, File.join(Rails.root, "vendor", "chiliproject_plugins"))
# Use redmine's custom plugin locater
require File.join(RAILS_ROOT, "lib/redmine_plugin_locator")
config.plugin_locators << RedminePluginLocator

1
vendor/chiliproject_plugins/README vendored Normal file
View File

@ -0,0 +1 @@
Install ChiliProject plugins here and they will be automatically loaded.