mirror of
https://github.com/redmine/redmine.git
synced 2026-03-11 15:10:51 +01:00
Plugin directory is configurable (#24007).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@16654 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -378,7 +378,7 @@ Rails.application.routes.draw do
|
||||
|
||||
get 'robots.txt', :to => 'welcome#robots'
|
||||
|
||||
Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
|
||||
Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*", Rails.root) do |plugin_dir|
|
||||
file = File.join(plugin_dir, "config/routes.rb")
|
||||
if File.exists?(file)
|
||||
begin
|
||||
|
||||
Reference in New Issue
Block a user