mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Patch by Takashi Kato. git-svn-id: http://svn.redmine.org/redmine/trunk@21286 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0352ab71cf
commit
e82b0a77e3
@ -1,17 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Loads the core plugins located in lib/plugins
|
||||
Dir.glob(File.join(Rails.root, "lib/plugins/*")).sort.each do |directory|
|
||||
if File.directory?(directory)
|
||||
lib = File.join(directory, "lib")
|
||||
if File.directory?(lib)
|
||||
$:.unshift lib
|
||||
ActiveSupport::Dependencies.autoload_paths += [lib]
|
||||
end
|
||||
initializer = File.join(directory, "init.rb")
|
||||
if File.file?(initializer)
|
||||
config = RedmineApp::Application.config
|
||||
eval(File.read(initializer), binding, initializer)
|
||||
end
|
||||
Dir.glob(Rails.root.join('lib/plugins/*')).sort.each do |directory|
|
||||
next unless File.directory?(directory)
|
||||
|
||||
initializer = File.join(directory, 'init.rb')
|
||||
if File.file?(initializer)
|
||||
config = RedmineApp::Application.config
|
||||
eval(File.read(initializer), binding, initializer)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user